Friday, December 14, 2012

Prevent the setting nested into sub-virtual directories

If you have a virtual directory which contains sub-virtual directories and you don't want the root virtual directory settings (in the web.config) to be inherited into the sub-virtual directories, you have to wrap the "system.web" with "location".

  <location path="." inheritInChildApplications="false">
    <system.web>
    ....
    </system.web>
  </location>

No comments:

Post a Comment