27 August 2013

Web.Config Vs Machine.Config

Machine.Config:-

1) This is automatically installed when you install .Net Framework.
2)Only one machine.config file can exist on a server.
3) This file is at the highest level in the configuration hierarchy.
4)Its like a common repository for standard items and its over ridden by web.config file.
5)With out the Machine.Config file Application can not be executed.

Web.Config:-

1) This is automatically created when you create an ASP.Net web application project.
2)This file inherits the settings from the machine.config
3)With out the Web.Config file Application can still be executed.


1. web.config and machine.config both are the configuration  files
2. web.config files contains settings specific to a web application, 
machine.config file contains settings to computer.