requestValidationMode 导致 ValidateRequest=False 失效或者ASP.NET 4.0事件消息: 发生了验证错误;检测到有潜在危险的Request.Form值
摘要:解决方案:web.config 中httpRuntime 的requestValidationMode属性更改为‘2.0’; <httpRuntime requestValidationMode="2.0" />例如:先看如下 web.config 的代码:<system.web> <compilation debug="true" targetFramework="4.0"/> <httpRuntime requestValidationMode="2.0" />
阅读全文
posted @ 2013-05-24 14:42
浙公网安备 33010602011771号