且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从我的子应用程序中的父应用程序的web.config获取错误

更新时间: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>