04 October 2012

Disable web.config to be inherited to child/sub domain

there are two ways of doing this.
1. we could tell to parent domain web.config to not inherit all the element

<location path="." inheritInChildApplications="false">
    <system.web>
    ...
    </system.web>  
  </location>
Noteby doing this, all the element will not be inherited to sub domain.
2. we could clear the child domain to not use the inherited element from parent config
<httpModules>
        <clear/>
</httpModules>

Thanks to http://www.aspdotnetfaq.com/Faq/how-to-disable-web-config-inheritance-for-child-applications-in-subfolders-in-asp-net.aspx

No comments:

Post a Comment

Twiit.. Twiit... Gulp