Server Config Files

Server Config Files

Machine.config

  • Contains settings that apply to an entire computer
  • Located in %windir%\Microsoft.NET\Framework\framework_version\CONFIG

Web.Config Files

  • XML text files that store ASP.NET configuration data
  • Can appear in multiple folders within ASP.NET applications
  • Each file applies configuration settings to its own directory and to all the child directories below it
  • Settings in child directories can override settings specified in parent directories

Root Web.config File

  • The root of the ASP.NET configuration hierarchy
  • C:\Microsoft.NET\framework_platform\framework_version\CONFIG\Web.config file
    • Framework_Platform is either Framework or Framework64
    • Framework_version is typically v2.0.50727 or v4.0.30319
  • Contains global default settings for all ASP.NET apps that use a specific version of the .NET Framework
  • Each ASP.NET application inherits default configuration settings from their root Web.config file
  • Only specify ASP.NET settings in Web.config to override the default settings

ApplicationHost.config

  • The root file of the IIS 7.0 configuration system
  • Contains definitions of all sites, applications, virtual directories and application pools
  • Provides global defaults for the web server settings
  • Located in %windir%\system32\inetsrv\config
  • Can be used to lock-down most IIS sections at the global level so that they cannot be configured by web.config files at the site level

Sources