A potentially dangerous Request.Form解决方法

 时间:2024-10-13 18:43:05

1、登录到服务器或者链接ftp找到网站所在文件夹。

A potentially dangerous Request.Form解决方法

2、找到根目录下的配置文件,web.config,打开文件,进行编辑。

A potentially dangerous Request.Form解决方法

3、在<system.web></system.web>标签之中加入代码,<%@ Page validateRequest="false"%>,因为默认情况下是这个属性是true。

A potentially dangerous Request.Form解决方法

4、如果是.net 4.0之前的版本,做完烂瘀佐栾这部分工作,就可以看到这个问题已经解决了,但是如果是.net 4.0和之后的版眺螗熨膣本。则还需加入配置代码: <compilation debug="true" targetFramework="4.0"/> <httpRuntime requestValidationMode="2.0"/>

A potentially dangerous Request.Form解决方法

5、保存文件,再次测试功能,完成。

A potentially dangerous Request.Form解决方法
  • 【校园指南】四川师范大学操场运动篇
  • 出汗多怎么办
  • 秘制辣椒油_辣椒油
  • 现货沥青怎么交易
  • 无花果骨头汤
  • 热门搜索
    gym是什么意思 抱歉的意思 发奋图强的意思 狼狈的意思 过桥资金是什么意思 什么的我作文600字 thing是什么意思 一目了然的意思 lol是什么意思 东张西望的意思