产品使用及交流论坛

首页 » 产品使用交流区 » 安装及使用交流 » 请问大仙 Server Error in '/' Application.
开阳硒乡味 - 2014/2/8 13:51:43
请问大仙这是什么意思呀,我是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
开阳硒乡味 - 2014/2/8 13:58:23
<httpRuntime maxRequestLength="10240" executionTimeout="60" requestValidationMode="2.0" />
换成以下就可以了,这是为什么呢?
<httpRuntime maxRequestLength="20480" executionTimeout="60" >
xiyou - 2014/2/8 15:07:55
requestValidationMode="2.0" 这句是framework4.0新增的属性,iis属性的asp.net选择4.0时候才有效,2.0不识别这句所以会出错。
1
查看完整版本: 请问大仙 Server Error in '/' Application.