InheritInChildApplications属性不是在web.config中的位置识别元素 [英] InheritInChildApplications attribute not recognized in web.config location element

查看:1543
本文介绍了InheritInChildApplications属性不是在web.config中的位置识别元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经试过我的包裹

<system.web>

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

像这样

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

不过VS 2010 Web开发前preSS口口声声说

But VS 2010 Web Developer Express keeps saying

在'InheritInChildApplications'属性是不允许的。

The 'InheritInChildApplications' attribute is not allowed

当我跑我的web应用程序有一个错误:

When I run my web app there's an error:

HTTP错误500.19 - 内部服务器错误结果
  所请求的页面无法访问,因为该页的相关配置数据无效。

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

配置错误无法识别的属性'InheritInChildApplications。

Config Error Unrecognized attribute 'InheritInChildApplications'.

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

My configuration: ASP.NET 4.0 RTM, VS 2010, IIS 7.5

推荐答案

难道不应该是一个小写的i?

Shouldn't it be a lowercase 'i'?

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

我已经成功地使用它的最后4个或5个项目我已经做的。我的规格与你相似。我仍在使用.NET 4 RC。我还包括位置在system.webServer设置。

I have been using it successfully on the last 4 or 5 projects I have worked on. My spec is similar to yours. I'm still using .NET 4 RC. I also include the system.webServer settings within location.

祝你好运,

这篇关于InheritInChildApplications属性不是在web.config中的位置识别元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆