微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

asp.net – 在web.config location元素中无法识别InheritInChildApplications属性

我试过包装我的
<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设置。

祝你好运,

丰富

原文地址:https://www.jb51.cc/aspnet/254293.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐