ValidateRequest ="假"在Asp.Net不起作用4

问题描述:

我在,我用CKEditor的一种形式。这种形式的工作罚款Asp.Net 2.0和3.5,但现在它不Asp.Net 4+工作。我有ValidateRequest =false的指令。有什么建议?

I have a form at which I use ckeditor. This form worked fine at Asp.Net 2.0 and 3.5 but now it doesn't work in Asp.Net 4+. I have ValidateRequest="false" directive. Any suggestions?

在错误页面找到解决方案。只需要添加requestValidationMode =2.0

Found solution at the error page. Just needed to add requestValidationMode="2.0"

<system.web>
    <compilation debug="true" targetFramework="4.0" />
    <httpRuntime requestValidationMode="2.0" />
</system.web>

MSDN信息:HttpRuntimeSection.RequestValidationMode物业