InheritInChildApplications attribute not recognized in web.config location element

asp.net, asp.net-mvc, web-config

Solution

Shouldn't it be a lowercase 'i'?

<location path="." inheritInChildApplications="false">

I have been using it successfully on the last 4 or 5 projects I have worked on. My spec is similar to yours. I'm still using .NET 4 RC. I also include the system.webServer settings within location.

Good luck,

Rich

Problem

I've tried wrapping my ``` <system.web> ``` with ``` <location path="." InheritInChildApplications="false"> ``` like this ``` <location path="." InheritInChildApplications="false"> <system.web>...</system.web> </location> ``` But VS 2010 Web Developer Express keeps saying The 'InheritInChildApplications' attribute is not allowed When I run my web app there's an error: HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. Config Error Unrecognized attribute 'InheritInChildApplications'. My configuration: ASP.NET 4.0 RTM, VS 2010, IIS 7.5

Original source