PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 21 Jan 2020 09:16 AM by  Paul Fijma
ASP.NET - Web.config Inheritance and Overrides
 0 Replies
You are not authorized to post a reply.
Author Messages

Paul Fijma

New Member

New Member

21 Jan 2020 09:16 AM
    The ASP.NET configuration system is build around the idea of inheritance:
    Each Web.config file applies configuration settings to the directory that it is in and to all of the child directories below it. Settings in child directories can optionally override or modify settings that are specified in parent directories. Configuration settings in a Web.config file can optionally be applied to individual files or subdirectories by specifying a path in a location element.
    The root of the ASP.NET configuration hierarchy is the systemroot\Microsoft.NET\Framework\versionNumber\CONFIG\Web.config file, which includes settings that apply to all ASP.NET applications that run a specific version of the .NET Framework. Because each ASP.NET application inherits default configuration settings from the root Web.config file, you need to create Web.config files only for settings that override the default settings.
    For a lot of sites, you don't really need to know about that - you can get by with one Web.config file for the site. But, knowing how the inheritance works - and how to control it - can really help out.

    read about it here:
    You are not authorized to post a reply.

    Paul Fijma | GDPR | ...