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
Why is global asax is used?
How do u declare static variable and how it is declared and what is its lifetime?
Why SessionID changes in every request in asp.net?
What is http pipeline in asp.net?
What is webresource axd?
How can I configure asp.net applications that are running on a remote machine?
What is the life cycle of web page?
Explain the difference between server.transfer and response.redirect? Why would I choose one over the other?
Can you use Web API with ASP.NET Web Form?
if i wanna deploy my asp.net project to the production server and situation is that i m still not compiled my project i have as-is on my development side now on production server we dont have a visual studio now what kind of settings i need to be to do in webconfig /machine.config file to deploy my project and in iis too....
What is a master page and what does it do?
What is a session in asp.net?
How to manage different kinds of sessions in ASP.NET?
Explain asp.net mvc request life cycle? : asp.net mvc
How do I know asp.net mvc version? : Asp.Net MVC