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

can any one find and tell the difference between dot net and php which one is best ? which one we get more salary? which one is stable and which one is best for freshers and also better in future and carrer ? which one we wil get more salary sir ? please send ur valuable suggestions to kiranpulsar2007@gmail.com

0 Answers  


What are different types of api?

0 Answers  


How is my content secured from unauthorized access?

0 Answers  


What is role manager work in web.config? how to restrict perticular pages from the users using the role manager?

1 Answers   Patni,


How does VB.NET/C# achieve polymorphism?

6 Answers   Siebel Systems,


What is query string with example?

0 Answers  


How much is the pay-for-use service if I chose not to use microsoft-sponsored advertising?

0 Answers  


What are the objects in used in ASP for processing input and outputs?

1 Answers  


How to use a Master Database in Asp.net?

0 Answers   MCN Solutions,


What is the relationship(in oops) between codebehind and inline code(.aspx to .aspx.cs)??? explain

4 Answers   Mind Tree,


What is the behavior of a Web browser when it receives an invalid element?

0 Answers   MindCracker,


About writting a query and SP which is better ?

5 Answers   Abacus, Satyam,


Categories