解决.Net 4.0 A potentially dangerous Request.Form value was detected from the client 异常

在web.config中加入 

<httpRuntime maxRequestLength="22000" executionTimeout="43200" requestValidationMode="2.0"/>

特别是requestValidationMode="2.0" 非常重要

posted @ 2014-12-08 14:53  双魂人生  阅读(329)  评论(0编辑  收藏  举报