Message, True) End Sub The above code will find the last error occurred, send an email to webmaster and then redirect the user to an Error page. Posted by Rajesh at 5:02 AM. Labels: Application_Error, ASP. NET, Error Handling …

Original post: 
Handling global errors in ASP.NET using Application_Error event