Here an article I was reading about some of the new (and from the looks of it… very useful) features of WCF.
Monthly Archives: April 2007
ASP.NET AJAX Errors
I have been getting a few errors when trying to use the asp.net 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”.
This service is down right now, but it looks like it might be very useful!
Grabbing images from a AxWebBrowser
I have been fighting with this lately, but here is something I haven’t tried… rewriting the interface that is giving me problems.
Not sure if this will work, but I will give it a try.
More in the souce…
ASP.NET Upload Component
I think I saw this ABCUpload .Net tool being used by microsoft on one of their internal support sites for uploading large files.
I don’t think it actually gets around the httprequest length and executiontimeout problems, but it does provide you a window showing your progress, which is nice.
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
And here are some places discussing the issue:
ASP.NET Design Patterns
This is a 3 part article on the use of design patterns in ASP.NET.
This article shows a open source neural network component that the author uses for verification of written characters.