Back to Questions

What is the difference between ‘Web.config’ and ‘Machine.config’?

Your Answer

  • 12/18/2012 3:31:41 PM
  • Biju
  • 1

What is the difference between ‘Web.config’ and ‘Machine.config’?

Web.config files are used to apply configuration settings to a particular web application whereas machine.config file is used to apply configuration settings for all the websites on a web server.

Web.config files are located in the application's root directory or inside a folder situated in a lower hierarchy. The machine.config is located in the Windows directory Microsoft.Net\Framework\Version\CONFIG.

There can be multiple web.config files in an application nested at different hierarchies. However there can be only one machine.config file on a web server.

  • 12/18/2012 3:31:59 PM
  • test

Back to Questions