What is the difference between “web.config” and “machine.config” file?


  • The “machine.config” file is created when Visual Studio .NET is installed, where as the “web.config” is created when ever an ASP.NET Web Application is created
  • “machine.config” file is known as the machine/server level configuration file whereas “web.config” file is known as the application level configuration file
  • There will be only one “machine.config” file per machine whereas there will be one “web.config file per web application i.e. there can be more than one per machine
  • “machine.config” file is at the highest level of the configuration hierarchy whereas the “web.config” file inherits the settings from the “machine.config” file
  • The “machine.config” file resides in the path “C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFIG” whereas the “web.config” file resides in the root directory of the web application

Comments

Popular posts from this blog

jQuery Basics

What is the difference between a Page Layout and Master Page in SharePoint?

Accessing data from SharePoint 2010 to an ASP.NET application