Posted By

jprochazka on 10/02/10


Versions (?)

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

 / Published in: ASP

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

  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  

You need to login to post a comment.