↧
Answer by Georg Patscheider for How to catch HttpRequestValidationException...
Another way that only works with MVC is using a custom Exception Filter:Create a custom FilterAttribute that implements IExceptionFilterfrom inside the FilterAttribute, you can redirect to the...
View ArticleAnswer by bruno for How to catch HttpRequestValidationException in production
Ok, i found it my self.I must clear my last error.protected void Application_Error(object sender, EventArgs e){ var context = HttpContext.Current; var exception = context.Server.GetLastError(); if...
View ArticleHow to catch HttpRequestValidationException in production
I have this piece of code to handle the HttpRequestValidationException in my global.asax.cs file.protected void Application_Error(object sender, EventArgs e){ var context = HttpContext.Current; var...
View Article