We have an MVC3 application deployed on IIS 7.5, and now need to deploy another app in a subdirectory of the main one. After running into Web.config inheritance conflict we tried to wrap the system.web section of the parent app's config file in <location path="." inheritInChildApplications="false">
, as recommended in the accepted answer to web.config - how to prevent all inheritance, but we're getting an error:
InheritInChildApplications cannot be set to "false" if the location path is referring to machine.config or the root web.config.
What are we doing wrong?