虚拟目录中的web.config不被上级目录的web.config影响的处理
在上级目录的web.config中作以下处理:
<location path="." allowOverride="true" inheritInChildApplications="false">
<system.web>
...
</system.web>
</location>
即在<system.web> 外套个location。
在上级目录的web.config中作以下处理:
<location path="." allowOverride="true" inheritInChildApplications="false">
<system.web>
...
</system.web>
</location>