更新时间:2021-08-03 21:24:40
配置文件是分层的,你的子web.config从你的root .config继承东西。如果您想要忽略某些部分,可以将 inheritInChildApplications =false
属性添加到不被继承的标记中。
config files are hierarchical, your sub web.config inherit things from your root .config. If you want certain parts to be ignred you can add inheritInChildApplications="false"
attribute to tags you don't to be inherited.
根据您的情况,将 inheritInChildApplications =false
添加到您的aplication root location
For your case add inheritInChildApplications="false"
to your aplication root location
<location path="." inheritInChildApplications="false">
</location>