Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm getting the above exception when I'm trying to submit a form in ASP.NET. This post was really helpful but even after setting ValidateRequest="false" I get this error only for "&#" combination. This specific combination is required since we are using Norwegian characters.

And I have set httpRuntime requestValidationMode="2.0" in web.config as well.

like image 781
Geethanga Avatar asked May 23 '12 10:05

Geethanga


1 Answers

Ok, from the comments, I make it also as an answer.

Place the ValidateRequest="false" on the web.config to prevent the case that its hit on a forgotten page with out this declaration.

<pages validateRequest="false" ... >
like image 64
Aristos Avatar answered Sep 24 '22 23:09

Aristos