A potentially dangerous Request.Form value was detected from the client

如果使用的是4.0 .net
在framework 4.0以后还需要在web.config里加入<httpRuntime requestValidationMode="2.0"/>这个配置。
出现错误前的web.config配置图

修改web.config配置成功解决图

如果在web.config里没有httpRuntime属性的话就直接加 <httpRuntime requestValidationMode="2.0" />就可以了。


