我尝试过包裹我的
<system.web>
with
<location path="." InheritInChildApplications="false">
像这样
<location path="." InheritInChildApplications="false">
<system.web>...</system.web>
</location>
但 VS 2010 Web Developer Express 一直说
不允许使用“InheritInChildApplications”属性
当我运行我的网络应用程序时出现错误:
HTTP 错误 500.19 - 内部服务器错误
无法访问所请求的页面,因为该页面的相关配置数据无效。
配置错误无法识别属性“InheritInChildApplications”。
我的配置:ASP.NET 4.0 RTM、VS 2010、IIS 7.5
可能是因为您没有在根节点上指定名称空间?例如
You need
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
not
<configuration>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)