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

Define the term Web Garden?

0 Answers   Sans Pareil IT Services,


What are the session variables?

0 Answers  


What is the difference between a multi-layer and multi-tier applications?

0 Answers   Microsoft,


What is server side session?

0 Answers  


What event fired during, when datagrid click?

1 Answers  






With example & diagram explain AutoPostBack.

2 Answers  


How would you get ASP.NET running in Apache web servers - why would you even do this?

1 Answers   Siebel Systems,


Why we go for mvc instead of asp.net? : Asp.Net MVC

0 Answers  


Explain different types of Caching techniques in ASP.NET?

0 Answers   Sans Pareil IT Services,


What does occur first in ASP.Net, Authentication or Authorization?

0 Answers   MCN Solutions,


How Session outproc in Sqlserver stored?

0 Answers   CGI,


Turn Off ASP Session State on an IIS 5.1 Web Site

1 Answers  


Categories