ASP.NET Configuration

As mentioned earlier this chapter, ASP.NET applications use the web.config file as their configuration setting repository.

The web.config file uses a hierarchical configuration. This means that your application can inherit settings from another application, and vice versa. In an ASP.NET application, which typically consists of a directory structure several levels deep, a subfolder will inherit the parent's web.config settings, unless overridden by another web.config file.

For example, imagine the directory structure shown in Figure 13.6.

Figure 13.6. A typical ASP.NET directory structure.

The entire Web application would automatically ...

Get A Programmer's Introduction to Visual Basic® .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.