首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

Web.Config文件配置有关问题

2012-03-24 
Web.Config文件配置问题httpRuntime maxRequestLength2048576 executionTimeout110 appRequestQueu

Web.Config文件配置问题
<httpRuntime maxRequestLength="2048576" executionTimeout="110" appRequestQueueLimit="100" requestValidationMode="2.0"/>


web.config文件中加入这一句时提示

无法识别的属性“requestValidationMode”。请注意属性名称区分大小写。

帮忙解决一下!



[解决办法]

XML code
<system.web>     <compilation debug="true" targetFramework="4.0" />     <httpRuntime requestValidationMode="2.0" /> </system.web>
[解决办法]
再确认一下拼写是否有误?如果没有,看服务器的.netframework版本是否和你程序一致
[解决办法]
你的网站不是asp.net4.0的,无需写这个requestValidationMode,删除即可

热点排行