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
How do active server pages work?
What setting must be added in the configuration file to deny a particular user from accessing the secured resources?
What are the new features added from ASP to ASP.NET?
What is http post and http get?
What is semantic gap?
How would you create a permanent cookie?
What is difference between view state and session state?
What are the different types of events are occured when a client requests an ASP.NET page from IIS server?
can any one find and tell the difference between dot net and php which one is best ? which one we get more salary? which one is stable and which one is best for freshers and also better in future and carrer ? which one we wil get more salary sir ? please send ur valuable suggestions to kiranpulsar2007@gmail.com
What is a SESSION and APPLICATION object?
Is asp.net free?
What is cached data phone?
where can i gather the materials for MCP certification
What is form submit?
Where is http session stored?