6.4. ASP applications configuration files

ASP.NET uses several XML-based configuration files that we will cover in this section. The root configuration file is named machine.config and it provides ASP.NET configuration for the entire web server. This file can be found in the following directory:

WINNT\Microsoft.NET\Framework\v.<version>\Config 

The second configuration file is web.config, which contains configuration settings for the particular ASP.NET application. When a request for an ASPX page is made, the configuration files are compiled in the following way:

  • the web.config file in the current directory overrides the configuration sesstings stored in a web.config file in an application directory, which overrides settings at the website ...

Get A Programmer's Guide to .NET now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.