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

Explain transparent caching with aop?

0 Answers  


How many Language support in ASP.NET?

11 Answers   TCS,


What are typed datasets?

1 Answers   IBS,


can we pass values from one page to another page without redirecting to that page?

6 Answers   Google, Patni, Syntel, Wipro,


what is publisher?

0 Answers   Microsoft,






in which protocol ASP.NET WEB API Work?

0 Answers   HCL,


Is oauth for authentication or authorization?

0 Answers  


Which is better session or viewstate?

0 Answers  


Can we throw exception from catch Block?

9 Answers   Accenture, IBM,


What is mvc in asp.net interview question? : Asp.Net MVC

0 Answers  


How to call a child form method from the master page?

1 Answers  


How to use a Master Database in Asp.net?

0 Answers   MCN Solutions,


Categories