Create a script for DebugDiag to analyze Managed WebExceptions

DebugDiag was originally designed to help IIS engineers find issues in IIS.  It does not have a very rich experience however when analyzing Managed Exceptions.  I will show you how to modify some existing scripts and use then to analyze issues with the HttpWebRequest class. First copy the existing script CrashHangAnalysis.asp to a file in…

0

How To: Modify injected (attributed) code in an ATL control that is crashing

(ATL Control Visual Studio 2003 Crashes long value) I found a problem in the injected code from Visual Studio 2003 for an ATL control that had a property that was a long (VT_I4) value.  You could reliably crash the control if you put it into an html page and had jscript in a loop, setting the…

0

Using .NET HttpWebRequest class with SiteMinder you get a 403 or 401 error

Download Fiddler from http://fiddlertool.com and run this for an Internet Explorer browser session that successfully connects.   Then hit the same site with your .NET 2.0 client application and make sure you set the credentials in your code as well: http://msdn.microsoft.com/en-us/library/system.net.networkcredential.aspx  (Note you can set myCreds directly on the Credentials property of the HttpWebRequest object……

0

The underlying connection was closed: An unexpected error occurred on a receive.

This article is a great help http://support.microsoft.com/kb/915599 however, there is another potential cause.  If the target server resets the connection without replying with an HTTP status (for example 200 OK) you can also get this error.  Solution, find out why the server is reseting the connection.  Common causes include the target of the HTTP traffic is…

0