ASP.NET: Block inheritance of the root web.config to child applications.

Posted October 2nd, 2010

Using inheritInChildApplications="false" within a can stop the Web.config section it surrounds from being inherited by applications located within said application.

<!-- Add the following "location" tags to the root web.config that you do not wish to allow inheritance from -->

<location path="." inheritInChildApplications="false">