void context_Error(object sender, EventArgs e)
{
HttpContext context = ((HttpApplication)sender).Context;
Exception ex = context.Server.GetLastError();
// If this CompressionModule will be compressing the response and an unhandled exception
// has occurred, remove the WebResourceFilter as that will cause garbage characters to
// be sent to the browser instead of a yellow screen of death.
if (WillCompressResponse)
{
context.Response.Filter = null;
WillCompressResponse = false;
}
}