I have the following in my Global.aspx which is meant for handling errors:
void Application_Error(object sender, EventArgs e) { Exception exception = Server.
Application Errors can occur at any time - including when no connection is present.
For example, if a background thread is processing and causes an exception.