Difference between web.config and app.config?

Answers were Sorted based on User's Feedback



Difference between web.config and app.config?..

Answer / k kranti kumar

web.config file is for asp.net web applications
app.config file is for .net windows applications

Is This Answer Correct ?    44 Yes 7 No

Difference between web.config and app.config?..

Answer / pravinkumar

app.config file is for .net windows applications
web.config file is for asp.net web applications

Is This Answer Correct ?    18 Yes 7 No

Difference between web.config and app.config?..

Answer / 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

More ASP.NET Interview Questions

What is the purpose of url encoding?

0 Answers  


How To Call Outside Javascript File? Example : Our Project File Folder Name "Sample" Another Folder Name "Check".Check Folder Is Out Side Of Our Project ?Check Folder Have Verify.Js File. My Question Is How To Call Verify.Js File.

3 Answers   Consagous, Phoenix Technologies,


How can i explain my project during interview?many time i expalain my project but they did't accept? please explain me.

0 Answers   Honeywell, Wipro,


What is view state and how this can be done and was this there in asp?

11 Answers   Accenture, KDOT, Mphasis,


Hi, I Dont know about Application and Session State management. Can anyone explain me with simple example?

1 Answers  






what is CTS?

3 Answers   PrimeLine,


Can you set the session out time manually?

0 Answers  


Webconfig file is cofiguration of server or browser?

10 Answers   Wipro,


What is a windows service?

0 Answers  


what is abstract class and method..

2 Answers  


Explain the difference between AutoPostBack and IspostBack in ASP.NET?

0 Answers   Sans Pareil IT Services,


Explain different types of validators in asp.net?

0 Answers  


Categories