使用inheritInChildApplications避免子Web應用程序中的web.config繼承我想補充一下<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設置?
使用inheritInChildApplications避免子Web應用程序中的web.config
慕碼人8056858
2019-08-26 11:11:30