产品使用及交流论坛

首页 » 产品使用交流区 » 安装及使用交流 » asp.net4.0提交html出错的解决方法
shengge - 2011/8/11 21:45:00
Framework4.0默认阻止html提交,如果是3.0,网站设置会一直显示loading..
打开web.config找到
<httpRuntime maxRequestLength="10240" executionTimeout="60"  />
修改为
<httpRuntime maxRequestLength="10240" executionTimeout="60"  requestValidationMode="2.0"/>


如果没有<httpRuntime这行的话找到</system.web>,在这句前面加上
<httpRuntime maxRequestLength="10240" executionTimeout="60"  requestValidationMode="2.0"
/>
ahong - 2011/8/12 10:16:00
好帖
felitol - 2011/10/10 15:19:00
值得收藏啊
星期一 - 2011/10/28 16:56:00
解决问题了,谢谢
xiaoguai491 - 2011/10/29 16:28:00
谢谢楼主!!!!!
foryouwife - 2011/11/30 13:29:00
谢谢楼主啊.经过测试.这样是能行的
xiaofang1 - 2011/11/30 15:45:00
不错,学习一下
am7788 - 2012/1/11 17:28:00
终于解决问题了。。。。
252292914 - 2012/8/13 23:55:00
我是这么解决的,分享下吧,可能对其他朋友有用,如果出现进后台以后,点“提交”按钮后会出现报错之类的,我是按下面方法做的:
1、先把IIS里ASP.NET调成2.0(我之前是4.0),再重启IIS;
2、重启完IIS后,删除目录内instal.lock这个文件;
3、重新进行PA系统安装,应该就可以了。

我是这么解决了。
wshjc - 2012/10/8 9:57:00
Server Error in '/' Application.
--------------------------------------------------------------------------------

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 23:     </customErrors>
Line 24:     <globalization requestEncoding="utf-8" responseEncoding="utf-8" />
Line 25:     <httpRuntime maxRequestLength="10240" executionTimeout="60"  requestValidationMode="2.0"/>
Line 26:   </system.web>
Line 27: </configuration>


Source File: d:\server\Wskjw\wwwroot\web.config    Line: 25


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3634; ASP.NET Version:2.0.50727.3634


我的改了后在后台提示这个
nnspace_18 - 2012/10/19 21:28:25
该用户帖子内容已被屏蔽
patx - 2012/11/24 23:30:49
好贴。顶
yunwei1981 - 2015/4/3 16:03:18
为啥我改完就显示•该网站正在进行维护。 •该网站有程序错误。呢?
zzlovers - 2015/6/20 0:36:29
好东西,值得收藏!
水蓝色 - 2016/6/23 21:58:02
[b]回复 [url=http://bbs.pageadmin.net/showtopic-13632.aspx#44076]1楼[color=Olive]shengge[/color]的帖子[/url][/b]

我试了以后提示无法识别的属性“requestValidationMode”。请注意属性名称区分大小写。
1
查看完整版本: asp.net4.0提交html出错的解决方法