Difference between web.config and app.config?
Answer Posted / 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 View All Answers
in which protocol ASP.NET WEB API Work?
How to make sure that contents of an updatepanel update only when a partial postback takes place (and not on a full postback)?
What are the different types of validation controls provided in ASP.NET?
What is a web pool?
What is owin authentication?
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?
Is it possible to migrate visual interdev design-time controls to asp.net?
Why does my asp.net file have multiple tag with runat=server?
What is asp.net localization?
Where can I get information on cookies in asp.net?
What is sql data source control in asp.net?
What are the security types in ASP/ASP.NET? Different Authentication modes?
What are the validation controls available in ASP.NET?
What is the use of worker process in asp.net?
What are the disadvantages of using session?