从客户端中检测到有潜在危险的Request.Form值的解决办法
2016-02-29 16:07
399 查看
http://www.pageadmin.net/article/20141016/935.html
如果你网站iis服务器asp.net采用了4.0的版本,则默认会阻止客户端的html内容提交,提交后则会出现:从客户端(....)中检测到有潜在危险的 Request.Form 值...的错误提示。
解决办法:
用计事本打开web.config文件,找到下面这句
<httpRuntime maxRequestLength="10240" executionTimeout="60" />
在httpRuntime节点中增加一个requestValidationMode="2.0"的声明,如下:
<httpRuntime maxRequestLength="10240" executionTimeout="60" requestValidationMode="2.0"/>
如果没有<httpRuntime这行的话找到</system.web>,在这句前面加上
<httpRuntime maxRequestLength="10240" executionTimeout="60" requestValidationMode="2.0"/>
如果你网站iis服务器asp.net采用了4.0的版本,则默认会阻止客户端的html内容提交,提交后则会出现:从客户端(....)中检测到有潜在危险的 Request.Form 值...的错误提示。
解决办法:
用计事本打开web.config文件,找到下面这句
<httpRuntime maxRequestLength="10240" executionTimeout="60" />
在httpRuntime节点中增加一个requestValidationMode="2.0"的声明,如下:
<httpRuntime maxRequestLength="10240" executionTimeout="60" requestValidationMode="2.0"/>
如果没有<httpRuntime这行的话找到</system.web>,在这句前面加上
<httpRuntime maxRequestLength="10240" executionTimeout="60" requestValidationMode="2.0"/>
相关文章推荐
- iOS7 UIKit动力学-碰撞特性UICollisionBehavior 下
- 关于利用drawable 来提升UI Perfermance(启动页时,先显示空白页 )
- libsvm之SVM_GUI使用
- UIKit框架(15)PCH头文件
- Binary XML file line #3: <item> tag requires a 'drawable' attribute or child tag defining a drawable
- 设置网格UICollectionView的单元格间距
- UIkit框架(14)自定义标签控制器
- uicollectionView
- Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]
- IOS开发 GCD介绍: 基本概念和Dispatch Queue
- POJ3017Cut the Sequence|DP|单调队列|set
- 设置iOS项目Version Build版本号自动增加
- 关于UIScollView及其子类的在导航控制器
- UIKit框架(13)标签控制器UITabBarController
- 自定义View-->实现顶部Topbar的简单UI模板
- GUI_Download的Codepage参数
- 51.Which statement is true regarding synonyms?
- 又一编辑神器-百度编辑器-Ueditor
- uva 11572 唯一的雪花 Unique Snowflakes
- UITableView的分割线距左边有距离的解决办法