I have an application in .net 4.0 that I need to turn Validate Request off for.
I have put ValidateRequest = false in the .aspx page but that does nothing. I then added
<httpRuntime requestValidationMode = "2.0"/>
in the web.config file inside system.web section but the application now returns 500 – Internal server error.
Any idea what I’m doing wrong?
Thank you!
The 500 error was because of an already existing httpRuntime tag in the web.config file, hence the new one was resulting in a duplicate tag! So I now added requestValidationMode=”2.0″ to the existing httpRuntime tag, and it works perfectly.