I have a .NET 4.0 application on IIS 7 that contains a nested .NET 2.0 application. The problem is that the the nested .NET 2.0 application has the system.web.extensions sectionGroup within the <configSections>
of the web.config and the .NET 4.0 parent applications machine.config contains those sectionsGroups as well. This causes status code 500 server error.
Commenting out the system.web.extensions sectionGroup from the child applications web.config works but isn't an option with our setup.
How can I prevent inheriting the parent web.config in the child application? I've seen that <location path="." inheritInChildApplications="false">
was used in previous .NET versions but what do I wrap the location element around?
Intellisense shows me that "The inheritInChildApplications attribute is not allowed" and it doesn't appear to matter where I put it.