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

What are the asp.net 2.0 features?

743


If you want to write your own dot net language, what steps you will you take care?

722


What is state management in asp.net with example?

681


Explain the difference between the web config and machine config.

811


How to implement Authentication and Authorization?

767


How can we inherit a static variable?

748


What is validation in asp.net?

767


What is a web api? Which protocol is used in a web api?

750


What does session_start () do?

827


How will you load dynamic assembly?

746


What is a server cookie?

718


How can we access static variable?

847


Difference between DataGid and Girdview? Difference b/w .Net 2.0, 3.0 and 3.5 ? Diff b/w dispose & Finialize Methods?

2260


Explain what is the procedure to create the environment for asp.net? : asp.net mvc

790


Which is faster union or union all?

764