ValidateRequest=”false” doesn’t work in Asp.Net 4

Found solution on the error page itself. Just needed to add requestValidationMode=”2.0″ in web.config

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

MSDN information: HttpRuntimeSection.RequestValidationMode Property

Leave a Comment