Stop inheriting web.config from parent ASP.NET application in IIS 7.5

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 прочитайте, потому что в нем отсутствует раздел declaration

If I try to do:

<remove name = "system.web.extensions" /> 

it still reports the same error:

11
задан Kev 1 June 2011 в 10:26
поделиться