My site is half MVC and half webforms and if someone tries to pass a malicious URL to my site they get a YSOD with a HttpRequestValidationException being thrown. I'd love to catch this and handle it gracefully by using Application_Error() in Global.asax.cs since that is the standard that has already been set in this app. For whatever reason though these particular exceptions seem to fire off before Application_Error() can get a hold of them.
Any help is appreciated.
example malicious URL: localhost/site/user/login?foo=<bar></bar>