首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >避免在使用inheritInChildApplications的子web应用程序中继承web.config

避免在使用inheritInChildApplications的子web应用程序中继承web.config
EN

Stack Overflow用户
提问于 2009-04-23 15:26:00
回答 5查看 199.5K关注 0票数 165

我正在尝试添加

代码语言:javascript
复制
<location inheritInChildApplications="false">

到我的父web应用程序的web.config,但它似乎不起作用。

我父母的web.config有:

代码语言:javascript
复制
<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

我到底应该把

代码语言:javascript
复制
<location inheritInChildApplications="false">

所以它会忽略所有的web.config设置?

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/782252

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档