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
Can I have a unique key as foreign key?
What is the behavior of a Web browser when it receives an invalid element?
Describe the difference between inline and code behind - which is best in?
Define transparent caching with aop?
What is the difference between a default skin and a named skin?
Are xaml file compiled or built on runtime?
Describe state management in asp.net?
where can i gather the materials for MCP certification
Explain about Application and Session Events ?
What does clearing cache?
What is synchronous and Asynchronous post back ?
How you will manage the state of ASP.NET controls?
Define page fragment caching?
In which situation can you not use a viewstate?
What are Master Pages in ASP.NET?