Every time a user posts something containing <
or >
in a page in my web application, I get this exception thrown.
I don\'t want to go
If you are on .NET 4.0 make sure you add this in your web.config file inside the
tags:
In .NET 2.0, request validation only applied to aspx
requests. In .NET 4.0 this was expanded to include all requests. You can revert to only performing XSS validation when processing .aspx
by specifying:
requestValidationMode="2.0"
You can disable request validate entirely by specifying:
validateRequest="false"