Quantcast
Channel: How to catch HttpRequestValidationException in production - Stack Overflow
Browsing all 3 articles
Browse latest 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 all 3 articles
Browse latest View live




Latest Images