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
What are the asp.net 2.0 features?
If you want to write your own dot net language, what steps you will you take care?
What is state management in asp.net with example?
Explain the difference between the web config and machine config.
How to implement Authentication and Authorization?
How can we inherit a static variable?
What is validation in asp.net?
What is a web api? Which protocol is used in a web api?
What does session_start () do?
How will you load dynamic assembly?
What is a server cookie?
How can we access static variable?
Difference between DataGid and Girdview? Difference b/w .Net 2.0, 3.0 and 3.5 ? Diff b/w dispose & Finialize Methods?
Explain what is the procedure to create the environment for asp.net? : asp.net mvc
Which is faster union or union all?