【发布时间】:2013-05-24 07:59:32
【问题描述】:
我有以下 web.config 页面(我的网站在 ASP.NET 3.5 中):
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="3.0"/>
<pages validateRequest="false"/>
<httpRuntime requestValidationMode="2.0" />
</system.web>
</configuratiotn>
问题是targetFramework和requestValidationMode下有错误。
但我得到了错误:
Unrecognized attribute 'requestValidationMode. Note that names are case-sensitive features.
无法识别的属性'targetFramework.请注意,名称区分大小写。
我的问题是如何解决这个错误?
【问题讨论】:
-
检查您网站的应用程序池是否配置为 .NET Framework 版本。可能是目标框架小于3.0
标签: asp.net configuration web-config