// Code that runs when an unhandled error occurs private void Application_Error(object sender, EventArgs e) { ApplicationCommon.SendLastErrorInEmail(Server.MachineName); }