I\'ve implemented Rick Strahl\'s GZipEncodePage method on my site and it works great for the site itself. However, when my code throws an exception the \"Server Error\" page lo
In my case I put this in the my basepage class like so:
public class BasePage : System.Web.UI.Page
{
protected override void OnError(EventArgs e)
{
base.OnError(e);
System.Web.HttpContext context = System.Web.HttpContext.Current;
if (context != null && context.Response.Filter != null)
context.Response.Filter = null;
}
}