title: Garbled error page output using Gzip in ASP.NET / IIS7
body: <p>I've implemented <a href="https://weblog.west-wind.com/posts/2007/Feb/05/More-on-GZip-compression-with-ASPNET-Content" rel="nofollow noreferrer">Rick Strahl's GZipEncodePage</a> method on my site and it works great for the site itself.  However, when my code throws an exception the "Server Error" page looks something like this:</p>
  
  <p><a href="https://i.stack.imgur.com/xCd3X.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xCd3X.gif" alt="garble garble"></a><br>
  <sub>(source: <a href="http://x01.co.uk/garbled_garble.gif" rel="nofollow noreferrer">x01.co.uk</a>)</sub>  </p>
  
  <p>I've tried to hooking into <code>Application_Error</code> in an effort to remove the GZip headers but to no avail.  How I can reverse the GZipping on error?</p>