The Machine.Config file, which specifies the settings that are global to a particular machine. Machine Confiq is automatically installed when you install Visual Studio. Net on computer. 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. There are a number of ASP.NET settings that reside in the machine.config file provided with the .NET* Framework that can be tweaked to improve system performance. This file is located at the following path:
\WINNT\Microsoft. NET\Framework\[Framework Version]\CONFIG\machine.config
As web.config file is used to configure one asp .net web application, same way Machine.config file is used to configure the application according to a particular machine. That is, configuration done in machine.config file is affected on any application that runs on a particular machine. Usually, this file is not altered and only web.config is used which configuring applications.
You can override settings in the Machine.Config file for all the applications in a particular Web site by placing a Web.Config file in the root directory of the Web site as follows:
Difference between Web.Config and Machine.Config File
Two types of configuration files supported in ASP.NET. Configuration files are used to control and manage the behavior of a web application.
- 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.
- 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.confi