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 to comment out asp.net tags?
What is asp short for?
What is strong-typing versus weak-typing?
Who generates session id?
Differentiate between client-side and server-side validations in web pages.
How can we prepairing Interview
Explain client side state management system.
In order to bind the data from a data source to the Repeater control what property is set and what method must you call in your code,?
What is the difference between page-level caching and fragment caching?
What is the use of session state and application state and difference between them?
What is the purpose of using MVC programming pattern in ASP.NET?
What are the different session state management options available in asp.net?
Explain the difference between the web config and machine config.
How do you deploy your asp.net application?
IN an ASP.NET Web application if there is any error, how can you debug?