Do not allow subordinate virtual directories to inherit this level of Web.config configuration in IIS
Recently encountered a problem: the default Web site under the establishment of virtual sites, the virtual station reported Web.config configuration error. The check discovery is the default Web site configuration, not the virtual station. There are no related references under the virtual station, so the error is correct.
Workaround:
The web.config for configuring the default Web site is not down inheritance.
Put everything except Configsecton.
<location path= "." Inheritinchildapplications= "false" >
</location>
Inside go like:
<?xml version= "1.0" encoding= "UTF-8"?>
<configuration xmlns= "http://schemas.microsoft.com/.NetConfiguration/v2.0" >
<configSections>
...
</configSections>
<location path= "." Inheritinchildapplications= "false" >
Put your configuration the code here ...
</location>
</configuration>
have tried, feasible
Original address: http://hi.baidu.com/uyaly/item/6cfc9a42f48f5ef0dd0f6c2e