我正在尝试添加
<location inheritInChildApplications="false">
到我的父web应用程序的web.config,但它似乎不起作用。
我父母的web.config
有:
<configuration>
<configSections>
</configSections>
// 10 or so custom config sections like log4net, hibernate,
<connectionStrings>
</connectionStrings>
<appSettings>
</appSettings>
<system.diagnostics>
</system.diagnostics>
<system.web>
<webParts>
</webParts>
<membership>
</membership>
<compilation>
</compilation>
</system.web>
<location ..>
<system.web>
</system.web>
</location>
<system.webServer>
</system.webServer>
我的子web应用程序被设置为IIS中的应用程序,并且继承自导致问题的父级web.config
。
我到底应该把
<location inheritInChildApplications="false">
所以它会忽略所有的web.config设置?
https://stackoverflow.com/questions/782252
复制相似问题