2

I've disabled validateRequest in my web.Config, but the app is still firing the error:

A potentially dangerous Request.Form value was detected from the client

I've got the following in my web.Config

    <httpRuntime requestValidationMode="2.0" />
    <pages validateRequest="false">

I've also tried the following in my controller to no avail

<ValidateInput(False)> _
<AcceptVerbs(HttpVerbs.Post)> _
Function Edit(ByVal user As Domain.User, ByVal id As Integer) As ActionResult
Chase Florell
  • 46,378
  • 57
  • 186
  • 376

1 Answers1

2

Answer found Why is ValidateInput(False) not working?

You have to set the ValidInput in the Controller AND in the web.Config.

    <httpRuntime requestValidationMode="2.0"/>
Community
  • 1
  • 1
Chase Florell
  • 46,378
  • 57
  • 186
  • 376