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 a response cookie?

0 Answers  


How to make sure that contents of an updatepanel update only when a partial postback takes place (and not on a full postback)?

0 Answers  


Explain the server control events of asp.net ?

0 Answers  


What is the difference between a.Equals(b) and a == b?

4 Answers  


Various types of Page Load functions

4 Answers   Net Solution,






Which protocol is used to call web service?

0 Answers  


Below is a code extract from an ASP.Net application. The code basically reads data from the “name” field in the “members” table and prints them onto the webpage. Using the assumptions provided, fill in the 4 blanks below so that the code will run correctly. ‘Assumptions: ‘conn_str is a variable that holds the connection string to the database ‘Objects dbcomm and dbread are already declared earlier dbcomm = New OleDbCommand("SELECT name FROM members", conn_str) dbread = dbcomm._______________ _____________________ response.write(_______________) _____________________ dbread.Close()

4 Answers   Techno Solutions,


What are the different Key TreeView Properties in Asp.net 2.0?

1 Answers   TCS,


What is the difference between GridView and Repeater controls in ASP.NET?

0 Answers  


what is the assembly?

2 Answers  


What is the difference between “Web.config” and “Machine.Config”?

0 Answers  


what is use to destroy an object? illustrate.

2 Answers   Patni,


Categories