Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Web.config Inheritance

Status
Not open for further replies.

anonim1

Programmer
Dec 10, 2004
108
US
I have a standalone web application that runs in a subdirectory of the base web application. By design, the sub-application inherits settings from the web.config file of the parent application. This then throws errors, because the sub-application does not use some of these settings, such as httpModules, etc.

I've tried using <remove /> and <clear /> tags in the sub-web.config file to ignore inherited settings, but I still get configuration errors.

Here is what's in the parent web.config file:

Code:
<configSections>
  <section name="urlrewritingnet"
    restartOnExternalChanges="true"
    requirePermission="false"
    type="UrlRewritingNet.Configuration.UrlRewriteSection,
      UrlRewritingNet.UrlRewriter" />
</configSections>

And here's the error I get:

Code:
Parser Error Message: Unrecognized attribute 'restartOnExternalChanges'.

How can I get the sub-application to complete ignore the "urlrewritingnet" section from the parent web.config file?

I should also mention that the parent application is .NET 2.0, while the child application is .NET 1.1. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top