Quantcast
Browsing latest articles
Browse All 3 View Live

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 Article


Answer 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 Article


How 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
Browsing latest articles
Browse All 3 View Live