What was the difference between machine.config and
web.config files

Answers were Sorted based on User's Feedback



What was the difference between machine.config and web.config files..

Answer / vijay

machine. config is configuration file for all the
application in the IIS.
web.config is a configuration file for a application or folder

machine.config for machine level configuration.
web.config for a application/folder level configuration

Is This Answer Correct ?    86 Yes 4 No

What was the difference between machine.config and web.config files..

Answer / ranjeet kumar

web.config files apply settings to each web application,

but

machine.congig file apply settings to all asp.net
applications.

Is This Answer Correct ?    52 Yes 6 No

What was the difference between machine.config and web.config files..

Answer / kinge

web.config file for only use single web application but
machine .config use whole application

Is This Answer Correct ?    34 Yes 1 No

What was the difference between machine.config and web.config files..

Answer / saransony

Configuration files are used to control and manage the
behavior of a web application.
Machine.config
Web.config
Difference between Machine.Config and Web.Config?
Machine.Config:
This is automatically installed when you install Visual
Studio. Net.
This is also called machine level configuration file.
Only one machine.config file exists on a server.
This file is at the highest level in the configuration
hierarchy.
Web.Config:
This is automatically created when you create an ASP.Net
web application project.
This is also called application level configuration file.
This file inherits setting from the machine.config
Links- http://www.go4expert.com/forums/showthread.php?
t=6704
http://forums.asp.net/t/1117776.aspx

Is This Answer Correct ?    36 Yes 3 No

What was the difference between machine.config and web.config files..

Answer / guest

it supports configuration file section for all application
in IIS -----> machine.config


contains security policy ----->web.config

Is This Answer Correct ?    20 Yes 2 No

What was the difference between machine.config and web.config files..

Answer / reha

when you want to set some settings/properties common to all
the applications falling under same web server then go for
machine.config. If you want apply the settings individually
to each web application then go for web.config.

Is This Answer Correct ?    14 Yes 2 No

What was the difference between machine.config and web.config files..

Answer / preetika sharma

Web.config is scoped to a particular directory. we use it
to ovverride the machine.config for a particular
application or application folder.

Is This Answer Correct ?    10 Yes 1 No

What was the difference between machine.config and web.config files..

Answer / sandhya

1)Machine.config is used to store machine level settings
Web.config is used to store per application based settings

2)We can have more than one web.config files but only one
machine.config

3)Web.config overrides the machine.config file.

If we store different values on both for a single key, the
application will get the value from the web.config file

Is This Answer Correct ?    10 Yes 2 No

What was the difference between machine.config and web.config files..

Answer / sanjay maurya

What are the two types of configuration files supported by
ASP.Net?
Configuration files are used to control and manage the
behavior of a web application.
? Machine.config
? Web.config
Difference between Machine.Config and Web.Config?
Machine.Config:
? This is automatically installed when you install Visual
Studio. Net.
? This is also called machine level configuration file.
? Only one machine.config file exists on a server.
? This file is at the highest level in the configuration
hierarchy.
Web.Config:
? This is automatically created when you create an ASP.Net
web application project.
? This is also called application level configuration file.
? This file inherits setting from the machine.config

Is This Answer Correct ?    4 Yes 0 No

What was the difference between machine.config and web.config files..

Answer / sanjay bisht

machine. config is configuration file for all the
application in the IIS.
web.config is a configuration file for a application or
folder

machine.config for machine level configuration.
web.config for a application/folder level configuration

Is This Answer Correct ?    5 Yes 3 No

Post New Answer

More ASP.NET Interview Questions

• What Session State providers are available in ASP.NET? What are the pros and cons of each?

2 Answers   Infosys,


What are the versions of garbage collection?

0 Answers   Proteans,


How do u declare static variable and how it is declared and what is its lifetime?

0 Answers  


Define machine.config in .net?

0 Answers  


Explain the difference between overriding and overloading?

0 Answers  






What are the media types of http requests and response?

0 Answers  


What’s the difference between asp.net web forms and asp.net mvc?

0 Answers  


What is asp.net globalization?

0 Answers  


What is the difference between cache and cookies?

0 Answers  


List the events in page life cycle.

0 Answers  


Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?

2 Answers   Siebel Systems,


What are the different kinds of assemblies?

0 Answers  


Categories