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


Please Help Members By Posting Answers For Below Questions

Where is http session stored?

501


1.can we add connection string in global.asax?????????? 2.what are the default files included when we create new web application????

18512


What is x xss protection?

570


What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?

506


What are the built-in objects in asp.net?

554






What is meant by server side scripting?

523


What is paging in context of Memory?

650


Define repository pattern in mvc.net? : asp.net mvc

517


What is an imagemap in asp.net?

554


Is asp.net a programming language?

533


What does mean by a neutral culture?

603


Explain the difference between overriding and overloading?

544


Explain about the .NET framework?

569


How would you get asp.net running in apache web servers?

542


Explain the Order of events in an asp.net page?

606