A potentially dangerous Request.Form value in MVC 2 & ASP.NET 4.0

Posted by Veton on Stack Overflow See other posts from Stack Overflow or by Veton
Published on 2010-01-07T11:22:51Z Indexed on 2010/05/21 23:00 UTC
Read the original article Hit count: 350

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:

  1. <%@ Page ValidateRequest="false" %> in .aspx-file.
  2. <pages validateRequest="false" /> in web.config.
  3. [ValidateInput(false)] on controller's action.

don't help me.

Hope for any advice.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc-2