Here are details of ASP.Net Configuration file heirarchy levels :
Configuration level | File name | File description |
---|---|---|
Server | Machine.config | The file contains the ASP.NET schema for all of the Web applications on the server. This file is at the highest level of the configuration merge hierarchy. |
Root Web | Web.config | The file for the server is stored in the same directory as the Machine.config file and contains default values for most of the system.web configuration sections. At run time, this file is merged second from the top in the configuration hierarchy. |
Web site | Web.config | The file for a specific Web site contains settings that apply to the Web site and inherit downward through all of the ASP.NET applications and subdirectories of the site. |
ASP.NET application root directory | Web.config | The file for a specific ASP.NET application is located in the root directory of the application and contains settings that apply to the Web application and inherit downward through all of the subdirectories in its branch. |
ASP.NET application subdirectory | Web.config | The file for an application subdirectory contains settings that apply to this subdirectory and inherit downward through all of the subdirectories in its branch. |
Client application directory | ApplicationName.config | The file contains settings for a Windows client application (not a Web application). |
IIS | ApplicationHost.config | ApplicationHost.config is the root file of the IIS 7.0 configuration system. It includes definitions of all sites, applications, virtual directories, and application pools, as well as global defaults for the Web server settings. It is in the following location: %windir%\system32\inetsrv\config |