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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.