Thursday, September 23, 2010

Disable inheritance of web.config

This is helpful when we need to use a different web.config for a virtual directory and not to inherit any settings from the web.config of root folder.

Add the below tag to root web.config


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


    <system.web>
    ...

   </system.web>
  </location>

No comments: