Difference between web.config and app.config?

Answers were Sorted based on User's Feedback



Difference between web.config and app.config?..

Answer / k kranti kumar

web.config file is for asp.net web applications
app.config file is for .net windows applications

Is This Answer Correct ?    44 Yes 7 No

Difference between web.config and app.config?..

Answer / pravinkumar

app.config file is for .net windows applications
web.config file is for asp.net web applications

Is This Answer Correct ?    18 Yes 7 No

Difference between web.config and app.config?..

Answer / reva ram sahu

web.config is used with web applications. web.config will by
default have several configurations required for the web
application. You can have a web.config for each folder under
your web application.

app.config is used for windows applications. When you build
the application in vs.net, it will be automatically renamed
to <appname>.exe.config and this file has to be delivered
along with your application.

You can use the same method to call the appsettings values
from both config files :

System.Configuration.COnfigurationSettings.AppSettings["Key"]

Is This Answer Correct ?    6 Yes 2 No

Post New Answer

More ASP.NET Interview Questions

Difference between DataView and DataTable

4 Answers  


What is the use of directives & explain with example?

2 Answers   C Squared Systems,


what do you mean software devlopment ?

9 Answers   HCL,


In which scenario we use Session and Cookies? With Example..

1 Answers  


hi ans dis qstn. "what is d max size of query string. If it exceeds does it give error. if yes wt error it gvs, if no gv the reason" thnx in advance

3 Answers  






What is the recommended approach for asp.net mvc to globally intercept exceptions? What other functionality can be implemented with the approach? : Asp.Net MVC

0 Answers  


Can you edit data in the Repeater control? Which template must you provide, in order to display data in a Repeater control? How can you provide an alternating color scheme in a Repeater control? What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?

0 Answers  


What are strong names?

0 Answers  


What are the different types of proxy patterns?

0 Answers  


Explain what are the advantages of asp.net mvc framework? : asp.net mvc

0 Answers  


What property must you set, and what method must you call in your code, in order to bind the data from a data source to the Repeater control?

1 Answers   Siebel,


What does the orientation property do in a menu control?

0 Answers  


Categories