What is difference between machine.config and Web.Config?

Answers were Sorted based on User's Feedback



What is difference between machine.config and Web.Config?..

Answer / sandip divate

machine.config is for configuration settings of all the
applications on a machine. where as web.config is
application specific.it contains configuration settings for
a application.

Is This Answer Correct ?    17 Yes 3 No

What is difference between machine.config and Web.Config?..

Answer / madhunathanv

Web.config is particular WebApplication Specific,it has
diff web.config files for different applications.

Machine.config is Whole .Net Application specific ,it is
only one.ie..,machine.config applies to the entire machine

The Configuration system first searches settings in
machine.config file & then looks in application
configuration files(web.config)

AFAIK

Is This Answer Correct ?    15 Yes 3 No

What is difference between machine.config and Web.Config?..

Answer / suresh

In Machine.config file you can store,
1. Connection strings
2. Membership
3. RoleManager
4. Profile
5. HttpHandlers

in web.config
1. Database connections
2. Session States
3. Error Handling
4. Security

Is This Answer Correct ?    10 Yes 1 No

What is difference between machine.config and Web.Config?..

Answer / kannan

Web.Config Files - It is used to maintain the all type of
configuration like that Database connection and Error log
configuration and also maintain the Authenticate of user
security of the web application

Machine.config - only one file was created in your
microsoft .net folder when you installed the microsoft
visual studio.
So, it is used to configuration for the particular server
machine.

Is This Answer Correct ?    6 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

How to deploy the Asp.Net Project ?

3 Answers  


About Global .asax ?

6 Answers   Satyam,


What is xaml? Are xaml file compiled or built on runtime?

0 Answers  


Define viewstate in .net?

0 Answers  


Is redux flux?

0 Answers  






How do you secure your connection string information?

0 Answers  


what is pagination in asp.net ?

1 Answers   Netsweeper,


What is the purpose of url encoding?

0 Answers  


Difference Between ReadOnly and Constant Variable in compile time and Run Time.

3 Answers   Phoenix Technologies, Quadrant,


What is the full meaning of asp.net?

0 Answers  


Hi , I am Basha. I am searching a job in dotnet.Plz tell me the order of page events in asp.net 2.0> plz send faq's related to c#.net,asp.net,sqlserver2000 etc. to my mail-id : bashask.ss@gmail.com

4 Answers   Sapient,


What are generics? why it is used? architecture of ASP.NET?

7 Answers   Path Infotech, Satyam, TCS,


Categories