加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net – 在web.config location元素中无法识别InheritInChild

发布时间:2020-12-15 19:05:13 所属栏目:asp.Net 来源:网络整理
导读:我试过包装我的 system.web 与 location path="." InheritInChildApplications="false" 喜欢这个 location path="." InheritInChildApplications="false"system.web.../system.web/location 但是VS 2010 Web Developer Express不断说 The ‘InheritInChildAp
我试过包装我的
<system.web>

<location path="." InheritInChildApplications="false">

喜欢这个

<location path="." InheritInChildApplications="false">
<system.web>...</system.web>
</location>

但是VS 2010 Web Developer Express不断说

The ‘InheritInChildApplications’ attribute is not allowed

当我运行我的网络应用程序时,有一个错误:

HTTP Error 500.19 – Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.

Config Error Unrecognized attribute ‘InheritInChildApplications’.

我的配置:ASP.NET 4.0 RTM,VS 2010,IIS 7.5

解决方法

不应该是小写“i”吗?
<location path="." inheritInChildApplications="false">

我已经使用它成功地在过去的4或5个项目,我曾经。我的规格类似于你的。我还在使用.NET 4 RC。我还在位置内包括system.webServer设置。

祝你好运,

丰富

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读