WYSIWYG

http://kufli.blogspot.com
http://github.com/karthik20522

Thursday, October 25, 2012

Unhandled GZip Encoding

What happens when you have GZip turned on and there is an unhandled exception is thrown, look no further.. a completely cryptic garbage page is returned



So whats the problem, well when an unhandled exception is thrown ASP.NET/MVC removes the GZip header or any other custom header that was set and returns a non-zipped content while your IIS decides to send to browser that the content is GZipped when it's not really. So your browser is receiving a non-zipped content with GZIP content type, thus the garbage content.

To fix this in the global.ascx add the following to the Application_PreSendRequestHeaders function:

Labels: , , , ,

Sunday, October 14, 2012

Visual Studio 2012 - Annoying Single Click Preview

Not sure about rest of the visual studio user's but the new 2012 version by default has the single click/preview option enabled! Annoying as hell :-/ Anyways, to disable it

TOOLS -> OPTIONS -> ENVIRONMENT -> TABS AND WINDOWS -> UNCHECK PREVIEW TAB

Labels:

Monday, October 1, 2012

Beer in my belly - X


Imperial stout

Old foghorn Ale

XX - Bitter

Labels: