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 Dynamic Web and discuss its usage with the help of real life examples?

0 Answers   Huawei,


What is validationsummary server control? where it is used ?

1 Answers  


what is state management,what is the purpose of it,how it will be implemented in real time?

2 Answers  


How to configure a website without using IIS.

3 Answers   CGI,


What is difference between Fragment Caching and Page Caching in ASP.NET?

0 Answers   PUCIT,


There is a login page that has two text boxes with required field validators on it. The page has a login and cancel button. How can we ensure that the click on the cancel button doesnt fire a validation event.

2 Answers   Proteans,


What is the life-span of the items in the viewstate?

0 Answers  


Why is an object pool required?

0 Answers  


About Windows/Forms Authentication

1 Answers  


Is asp.net a programming language?

0 Answers  


what is webservices. howit is use in our project .

4 Answers   TCS,


What is page fragment caching?

0 Answers  


Categories