PageAdmin网站内容管理系统(CMS)交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

asp.net4.0提交html出错的解决方法 [复制链接]

1#
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"
/>
分享 转发
TOP
2#

好帖
TOP
3#

值得收藏啊
http://www.201sy.com
http://www.aimeisy.com
http://www.dghongxing.com.cn
TOP
4#

解决问题了,谢谢
TOP
5#

谢谢楼主!!!!!
www.yfbet.com www.bocai110.info www.188jbbet.com www.tt133bet.com
TOP
6#

谢谢楼主啊.经过测试.这样是能行的
TOP
7#

不错,学习一下
TOP
8#

终于解决问题了。。。。
TOP
9#

我是这么解决的,分享下吧,可能对其他朋友有用,如果出现进后台以后,点“提交”按钮后会出现报错之类的,我是按下面方法做的:
1、先把IIS里ASP.NET调成2.0(我之前是4.0),再重启IIS;
2、重启完IIS后,删除目录内instal.lock这个文件;
3、重新进行PA系统安装,应该就可以了。

我是这么解决了。
TOP
10#

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


我的改了后在后台提示这个
TOP
11#

该用户帖子内容已被屏蔽
深圳网站建设
TOP
12#

好贴。顶
TOP
13#

为啥我改完就显示•该网站正在进行维护。 •该网站有程序错误。呢?

为啥我改完就显示•该网站正在进行维护。 •该网站有程序错误。呢?
TOP
14#

好东西,值得收藏!
领先的互联网应用服务提供商—好合数据  www.cnhaohe.com
TOP
15#

这个方法还继续适用吗?

[b]回复 [url=http://bbs.pageadmin.net/showtopic-13632.aspx#44076]1楼[color=Olive]shengge[/color]的帖子[/url][/b]

我试了以后提示无法识别的属性“requestValidationMode”。请注意属性名称区分大小写。
TOP
发新话题 回复该主题