Jeff Sanders Technical Blog

I am a Microsoft employee that has worked on all aspects of the Web Stack for a long time. I hope these blogs are useful to you! Use this information at your own risk.


Earlier Posts

I decided to Dive into the WWSAPI Beta and see how I could call a simple HelloWorld Applications.  Here are my adventures:


Often you need to correlate a .NET trace with a <a title=”Netmon” href=”http://www.microsoft.com/downloads/details.aspx?FamilyID=f4db40af-1e08-4a21-a26b-ec2f4dc4190d&DisplayLang=en” target=”_blank” mce_href=”http://www.microsoft.com/downloads/details.aspx?FamilyID=f4db40af-1e08-4a21-a26b-ec2f4dc4190d&DisplayLang=en”>Netmon</a> trace.  To do that you need the date and time of the call from the <a title=”System.Net trace” href=”http://msdn.microsoft.com/en-us/library/ty48b824.aspx” target=”_blank” mce_href=”http://msdn.microsoft.com/en-us/library/ty48b824.aspx”>System.Net trace</a>.  This will do it!


Problem


Problem 


If you look at a Kerberos ticket when HttpWebRequest is trying to retrieve a resource, you will notice that it does not have the port number in the SPN.


SOAP Toolkit is out of support and the ATLServer Classes are not supported in VS 2008.  What to do for native C++ development?



I was able to cause this error in Internet Explorer 6 and Internet Explore 7.  I found that editing my registry entry so that the user agent was greater than 260 I could cause this error in jscript dialogs.  By removing entries to get below the size I could avoid the error.  This is the registry location for the user agent strings (see http://support.microsoft.com/kb/218933 for setting this using IEAK):


Please send me a message or leave a comment to let me know if this Post helped you! 


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.


(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 value over and over (100 X) in this case would crash it.  To make the crash reliable, I turned off BSTR caching and set full gflags.  You could see the issue was the freeing of a BSTR twice. 


Download Fiddler from <font color=#0000ff>http://fiddlertool.com</font> and run this for an Internet Explorer browser session that successfully connects.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />