A potentially dangerous Request.Form value in MVC 2 & ASP.NET 4.0
- by Veton
When I trying to send form containing value with xml, I get HttpRequestValidationException:
A potentially dangerous Request.Form value was detected from the client
All approaches I found:
<%@ Page ValidateRequest="false" %> in .aspx-file.
<pages validateRequest="false" /> in
web.config.
[ValidateInput(false)] on
controller's action.
don't help me.
Hope for any advice.