The web.config File : Introduction « Configuration « ASP.NET Tutorial






Every web application inherits the settings from the machine.config file. 
You can apply application-specific settings. 
The entire content of an ASP.NET configuration file is nested in a root <configuration> element. 
<system.web> element is used for ASP.NET settings. 
Inside the <system.web> element are separate elements for each aspect of configuration.

ASP.NET uses a multilayered configuration system. 
To use this technique, you need to create additional subdirectories inside your virtual directory. 
These subdirectories can contain their own web.config files. 
ASP.NET uses configuration inheritance so that each subdirectory acquires the settings from the parent directory.
If settings conflict, the settings from a web.config in a nested directory always override the settings inherited from the parent.








16.1.Introduction
16.1.1.Overview of Website Configuration
16.1.2.Applying Configuration Settings to a Particular Path
16.1.3.The web.config File
16.1.4.Using Elements
16.1.5.Locking Configuration Settings
16.1.6.Lock the debug attribute, and only the debug attribute, of the element.
16.1.7.Adding Custom Application Settings
16.1.8.Placing Configuration Settings in an External File
16.1.9.Opening a Configuration File on a Remote Server