Block inheritance of the root web.config to child applications.

/ Published in: ASP
Save to your folder(s)

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

Copy this code and paste it in your HTML
  1. <!-- Add the following "location" tags to the root web.config that you do not wish to allow inheritance from -->
  3. <location path="." inheritInChildApplications="false">
  4. <system.web></system.web>
  5. </location>

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.