A potentially dangerous Request.Form value was detected from the client (FCKeditor="<img alt="" src=
来源:互联网 发布:360浏览器淘宝比价 编辑:程序博客网 时间:2024/04/30 07:37
我操作的时候是 ASP.NET提示错误
搜到的资料是这样的解释的:
用户在页面上提交表单到服务器时,服务器会检测到一些潜在的输入风险,例如使用富文本编辑器控件(RichTextBox、FreeTextBox、CuteEditor等)编辑的内容中包含有HTML标记或脚本标记,ASP.NET页面会抛出一个"A potentially dangerous Request.Form value was deceted from the client"的异常。这个是ASP.NET页面为了防范页面注入功能的一种保护机制,要取消这种保护,常规的做法是在.aspx文件的<%@Page %>部分加入ValidateRequest="false"属性。但是从.NET 4.0开始你可能需要多修改一个地方,在网站的web.config文件中加入这行配置:
<system.web> <compilation debug="true" targetFramework="4.0"/> <httpRuntime requestValidationMode="2.0"/></system.web>
同时,你还需要确保页面上用户输入的部分不会存在任何注入攻击的代码,常用的做法是使用Encode处理。
我实际上是这样解决的:
遇到过不知道多少次这样的错误了,我每次都是更改
NET Framework
的版本号解决的!
本地测试没问题,服务器报错的话,多半是版本号的问题!
0 0
- A potentially dangerous Request.Form value was detected from the client (FCKeditor="<img alt="" src=
- A potentially dangerous Request.Form value was detected from the client (content1="<IMG border=0 src
- A potentially dangerous Request.Form value was detected from the client (txtTest="").
- A potentially dangerous Request.Form value was detected from the client (ctl00$MainContent$DetailsView1$TextBox2="<a href='http:
- Error:A potentially dangerous Request.Form value was detected from the (WebEditor1="...bsp; <B>
- 错误提示: A potentially dangerous Request.Form value was detected from the client ....
- A potentially dangerous Request.Form value was detected from the client
- A potentially dangerous Request.Form value was detected from the client
- A potentially dangerous Request.Form value was detected from the client
- A potentially dangerous Request.Form value was detected from the client
- A potentially dangerous Request.Form value was detected from the client
- 解决A potentially dangerous Request.Form value was detected from the client
- A potentially dangerous Request.Form value was detected from the client
- .net 4.0 A potentially dangerous Request.Form value was detected from the client 的解决方案
- A potentially dangerous Request.Form value was detected from the client
- 处理asp.net出现A potentially dangerous Request.Form value was detected from the client
- 解决ASP.NET 4.0 "A potentially dangerous Request.Form value was detected from the client". 错误
- A potentially dangerous Request.Form value was detected from the client
- Android APP禁止旋转和软键盘的控制
- ExtJS4——图片上传
- git如何推送
- SQL学习(一)
- hadoop学习笔记(一)
- A potentially dangerous Request.Form value was detected from the client (FCKeditor="<img alt="" src=
- kalman滤波的本质
- 超长正整数相加(OJ)
- vue.js 快速理解
- nginx和tomcat搭配使用,让nginx可以访问tomcat下面的静态资源
- hadoop从零开始--linux下jdk,tomcat,mysql的安装
- Glide Android图片加载的利器---基本介绍和使用
- 范围搜索 (Range Query)
- Unity 移动端触摸屏操作