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设置。

祝你好运,

丰富

相关文章

### 创建一个gRPC服务项目(grpc服务端)和一个 webapi项目(...
一、SiganlR 使用的协议类型 1.websocket即时通讯协议 2.Ser...
.Net 6 WebApi 项目 在Linux系统上 打包成Docker镜像,发布为...
一、 PD简介PowerDesigner 是一个集所有现代建模技术于一身的...
一、存储过程 存储过程就像数据库中运行的方法(函数) 优点:...
一、Ueditor的下载 1、百度编辑器下载地址:http://ueditor....