Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void ErrorMail_Filtering(object sender, ExceptionFilterEventArgs args)
- {
- Filter404Errors(args);
- }
- private void Filter404Errors(ExceptionFilterEventArgs args)
- {
- if (args.Exception.GetBaseException() is HttpException)
- {
- var httpException = args.Exception.GetBaseException() as HttpException;
- if (httpException != null && httpException.GetHttpCode() == 404)
- args.Dismiss();
- }
- }
Add Comment
Please, Sign In to add comment