HTTP Compression with IIS 6.0 and ASP.NET

Here are some nice step by step directions for getting HTTP Compression setup in IIS6.

They also link to a nice site that will do a compression test for you on the public side.

I was trying to test stuff that wasn’t public, so I figured out how to test this with Fiddler.

Once you start a trace with fiddler, if you select a session, they will check a box next to the type of compression None/GZIP/Deflate, which was used.

 

Escaping Characters in MailTo

I have recently needed to create some more complex mailto links than people normally use.  I need to populate the subject and body with text that is pulled from a DB, so there are lots of random characters in there like @, #, &, -, _, etc…

Most of these won’t work, and need to be escaped.

The most effective way I found was to use the ascii HEX code in this format:

%2D = “-”

%45 = “E”

ASP.NET Process Recycling Too Often

I’m not going to write too much about this, but we have been seeing a LOT of recycles of our web application, which makes us lose session for everyone logged it.

I am just going to archive a few links I have been using to track down this problem.

ScottGu has some reflection code to get the reason the process is shutting down that I converted to vb.net

Scott Gu’s Article

And here are some places discussing the issue:

asp.net thread

Todd Carter’s Blog Article

Scott Forsyth’s Blog Article

TypeOf VB.NET vs C#

If you are Microsoft, why do you create a function “TypeOf” that has totally differnet applications in VB and C#?

Typeof in C# is like GetType in VB, where VB uses TypeOf to see if 2 types are the same or check for interface implementation.

Kinda dumb.