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:
And here's the error I get:
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.
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.