产品使用及交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

请问大仙 Server Error in '/' Application. [复制链接]

1#
请问大仙这是什么意思呀,我是XP系统,
.NET Framework 2.0访问首页出现这个。

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized attribute 'requestValidationMode'. Note that attribute names are case-sensitive.

Source Error:


Line 19:     </customErrors>
Line 20:     <globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" />
Line 21:     <httpRuntime maxRequestLength="10240" executionTimeout="60" requestValidationMode="2.0" />
Line 22:   </system.web>
Line 23: </configuration>


Source File: F:\kyxxg\web.config    Line: 21


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
分享 转发
TOP
2#

<httpRuntime maxRequestLength="10240" executionTimeout="60" requestValidationMode="2.0" />
换成以下就可以了,这是为什么呢?
<httpRuntime maxRequestLength="20480" executionTimeout="60" >
TOP
3#

requestValidationMode="2.0" 这句是framework4.0新增的属性,iis属性的asp.net选择4.0时候才有效,2.0不识别这句所以会出错。
TOP
发新话题 回复该主题