I have been getting a few errors when trying to use the ajax framework.

The one error message is:

Error: Sys.ArgumentTypeException: Object of type ‘Sys_Application’ cannot be converted to type ‘Sys._Application’/

Parameter name: instance

This is caused by having SmartNavigation turned on for the page. 

The other error I was getting was this Sys.ArgumentOutOfRangeException.  Value must be an integer.  Parameter name: X.  Actual value was NaN.

This error is caused by using a “yes” or “no” for “frameborder” for a frame.

Yes and No are valid entries but the framework is expecting a “1” or a “0”.



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

Scott Gu’s Article

And here are some places discussing the issue: thread

Todd Carter’s Blog Article

Scott Forsyth’s Blog Article