【问题标题】:Does inheritInChildApplications Web.config attribute work in ASP.NET MVC 3?inheritInChildApplications Web.config 属性在 ASP.NET MVC 3 中是否有效?
【发布时间】:2012-10-09 21:44:43
【问题描述】:

我们在 IIS 7.5 上部署了一个 MVC3 应用程序,现在需要在主应用程序的子目录中部署另一个应用程序。遇到 Web.config 继承冲突后,我们尝试按照web.config - how to prevent all inheritance 接受的答案中的建议将父应用配置文件的 system.web 部分包装在 <location path="." inheritInChildApplications="false"> 中,但我们收到错误:

InheritInChildApplications 不能设置为“false”,如果位置 路径是指 machine.config 或根 web.config。

我们做错了什么?

【问题讨论】:

  • 你找到解决办法了吗?

标签: asp.net-mvc-3 inheritance web-config


【解决方案1】:

在 51Degrees.mobi 组件中存在一个已知错误,当​​在配置文件中使用 inheritInChildApplications 属性时,它会以一种导致应用程序崩溃的方式访问其配置。 显然,如here 所述,它已在较新的库版本中得到修复。

【讨论】:

    猜你喜欢
    • 2011-02-11
    • 2012-08-01
    • 1970-01-01
    • 1970-01-01
    • 2010-11-02
    • 2023-03-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多