Stop inheriting web.config from parent ASP.NET application in IIS 7.5
asp.net, configuration, web-config
Solution
If you can deploy your child application to a separate website (same machine, different port), Application Request Routing may be able to help with this.
The solution is similar to this post. First, install ARR. Then, configure your "child" application on a website that listens on a non-standard port. Next, configure a rewrite rule on the "parent" application's web site that matches the original path to the "child" application. Have this rule forward the request to the newly created website listening on the new port.
I would post an example, but I expect it is fairly straightforward to see how this would work by looking at the post referenced above.
Problem
We have deployed an ASP.NET Website (App 1) in IIS 7.5. Then under that application create another ASP.NET application (App 2). But in App 2, I don't want to inherit the `web.config` from App 1. If I try to do the following in App 1's, `web.config`: ``` <location path="." inheritInChildApplications="false"> <configSections> <!-- etc --> </configSections> </location> ``` it reports the error: Config Error The configuration section 'configSections' cannot be read because it is missing a section declaration If I try to do: ``` <remove name = "system.web.extensions" /> ``` it still reports the same error: