Http Client Protocol Issues (and other fun stuff I support)

If you use any of these solutions, Please let me know so I can track if any of this is useful to you! Thanks!

Certificate Revocation List (CRL) Check and WinHttp Proxy settings

Starting with Windows XP SP2, the Crypto API CRL check uses WinHttp (see:...

Author: Jeff Sanders Date: 02/21/2011

WCF Client Inner Exception: "The Security Support Provider Interface (SSPI) negotiation failed."

Creating a WCF Client in Visual Studio 2010, I struggled with this error. I was running as the...

Author: Jeff Sanders Date: 10/14/2010

WinHttp Proxy Settings in 64 Bit (x64) Environments

There are two settings for WinHttp Proxy settings for a 64 Bit OS. One applies to the 64 bit...

Author: Jeff Sanders Date: 09/16/2010

Understanding Problems with MS10-049, KB 980436 and IETF RFC5746

Understanding Problems with MS10-049, KB 980436 and IETF RFC5746 Microsoft released a Security...

Author: Jeff Sanders Date: 09/08/2010

How to Programmatically add a QueryTable and Data Connection to Excel

function CopyCode(elemName) { var obj = document.getElementById(elemName);...

Author: Jeff Sanders Date: 08/05/2010

Cannot Log on to MSDN Blog site

OK, I am a dummy. I spent 30 minutes trying to associate my account with the MSDN Blog sign in so I...

Author: Jeff Sanders Date: 06/11/2010

How to iterate (list) all selected items in a Databound ListBox in .NET 4.0 Winforms

A seemingly easy thing to do that I could not find documentation for! string astr;foreach...

Author: Jeff Sanders Date: 05/07/2010

Excellent information on Windows Web Service API (WWSAPI)

Having issues developing native C++ Webservices? Here is an AWESOME blog:...

Author: Jeff Sanders Date: 04/22/2010

URL Rewrite 2.0 Rule can prevent Images from displaying on WebControls like TreeView

I was excited to try URL Rewrite to create some rules on my internal web site. I added a rule to map...

Author: Jeff Sanders Date: 03/19/2010

.NET 2.0 HttpWebRequest does not use the https Proxy from Internet Explorer Settings

The .NET framework version 2.0 has the ability to get the IE proxy Settings and use them when making...

Author: Jeff Sanders Date: 03/16/2010

How to iterate over contained controls to set a common event handler (Click) in .NET

The requirement was to assign a click event handler to all Label Controls contained in a .NET User...

Author: Jeff Sanders Date: 10/14/2009

WinHttpWriteData will fail with ERROR_INVALID_PARAMETER if you are trying to send more data than specified in WinHttpSendRequest on Windows 7 (by design)

There are new checks in Windows 7 to prevent you from doing bad things with the WinHttp APIs. In the...

Author: Jeff Sanders Date: 10/13/2009

How To: Walkthrough Using HttpListener or Http Server unmanaged code (C++) as an SSL Simple Server

There seems to be no simple end-to-end walkthrough for creating a simple HttpListener based SSL...

Author: Jeff Sanders Date: 09/29/2009

How to get a dump for a System.Net.WebException using DebugDiag (Debug Diagnostics)

This information is available in the help file as well. For more options please refer to the Help...

Author: Jeff Sanders Date: 09/29/2009

How to get the window handle for the Internet Explorer process you created (LCIE IE 8)

One technique people use in accessibility applications is to kick off an application and then grab...

Author: Jeff Sanders Date: 09/04/2009

Using HttpWebRequest with Credential Manager

A little know fact is that the .NET framework will use the stored credentials in the Credential...

Author: Jeff Sanders Date: 09/03/2009

Using netsh to analyze WinInet problems in Windows 7 and Windows 8

There are some powerful tracing tools built into Windows 7 that can help you diagnose Internet...

Author: Jeff Sanders Date: 08/24/2009

WinHttp Proxy configuration on Windows 2003 x64

You may get an error similar to this when running your WinHttp application: Error: The server name...

Author: Jeff Sanders Date: 07/21/2009

WinInet used in Thread Impersonation

function CopyCode(elemName) { var obj = document.getElementById(elemName);...

Author: Jeff Sanders Date: 07/09/2009

Understanding Connection Limits and New Proxy Connection Limits in WinInet and Internet Explorer

Because of RFC 2616 section 8.1.4 (https://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html) we have...

Author: Jeff Sanders Date: 06/29/2009

InfoPath form and other xml Office documents do not open from Internet Explorer - Raw XML displays instead

I came across this problem. The key to this was that the documents opened fine when clicking on...

Author: Jeff Sanders Date: 06/11/2009

Some .chm files do not work on Windows 7 - Process Monitor - Navigation to the webpage was canceled

This took me a couple of minutes to find so I thought I would share this here. I downloaded ProcMon...

Author: Jeff Sanders Date: 06/10/2009

WWSAPI samples in Windows 7 SDK for RC: "Unable to add URL to HTTP URL group."

I like to build and run with UAC on. When running the HttpCalculatorService example I got this...

Author: Jeff Sanders Date: 06/09/2009

These options are well documented. Important notes: These flags affect the process that you set this...

Author: Jeff Sanders Date: 06/08/2009

Understanding the new WinInet option: INTERNET_OPTION_MAX_CONNS_PER_PROXY

The documentation on this is very straight forward...

Author: Jeff Sanders Date: 06/08/2009

Understanding the new WinInet option INTERNET_OPTION_SERVER_CERT_CHAIN_CONTEXT

function CopyCode(elemName) { var obj = document.getElementById(elemName);...

Author: Jeff Sanders Date: 06/05/2009

function CopyCode(elemName) { var obj = document.getElementById(elemName);...

Author: Jeff Sanders Date: 06/04/2009

Understanding the New WinInet option: INTERNET_OPTION_SUPPRESS_SERVER_AUTH

With the release of Internet Explorer 8 comes a new option for WinInet programming:...

Author: Jeff Sanders Date: 06/04/2009

Web Service call results in Exception: A socket operation was attempted to an unreachable host

There can be many reasons for this error. In some cases this error can be confusing. I have seen a...

Author: Jeff Sanders Date: 06/03/2009

How to enable WinHttp Tracing on Vista, 2008 and Windows 7

WinhttpTracecfg.exe for Vista does not exist, so how can you get a WinHttp trace in Vista and above?...

Author: Jeff Sanders Date: 05/28/2009

WWSAPI samples in Windows 7 SDK for RC: "The program can’t start because MSVCR90.dll is missing from your computer"

I was messing with the latest samples in the RC for Win7 SDK (Microsoft Windows SDK for Windows 7...

Author: Jeff Sanders Date: 05/21/2009

Understanding MaxServicePointIdleTime and DefaultConnectionLimit

function CopyCode(elemName) { var obj = document.getElementById(elemName);...

Author: Jeff Sanders Date: 05/20/2009

IIS 7 ADSI Error: System.Runtime.InteropServices.COMException (0x80005000): Unknown error (0x80005000)

The following code worked fine on IIS 6 but when used on IIS it failed:...

Author: Jeff Sanders Date: 05/13/2009

How to get Certificate Information Using WinInet APIs

// There are two different structures you can query in order to retrieve server certificate...

Author: Jeff Sanders Date: 04/17/2009

ASP.NET asp:menu does not display Child Menu items in IE 8

Strange. I found in my personal website the Child menus were not showing when I hovered over the...

Author: Jeff Sanders Date: 04/06/2009

You have a .NET control Hosted in Internet Explorer 8 and it restarts a tab in Internet Explorer

Message: This Tab Has Been Recovered Previous versions of IE are fine. If the control implements...

Author: Jeff Sanders Date: 04/01/2009

WWSAPI (Windows Web Services API) HTTP Kerberos Client

function CopyCode(elemName) { var obj = document.getElementById(elemName);...

Author: Jeff Sanders Date: 03/31/2009

Windows Web Services API Client code walkthrough on Windows 7

function CopyCode(elemName) { var obj = document.getElementById(elemName);...

Author: Jeff Sanders Date: 03/24/2009

HttpWebRequest exception: "Unable to connect to the remote server" when using .INS config files

Problem Taking a System.Net Trace (see My Favorite System.Net Tracing File) you will see that the...

Author: Jeff Sanders Date: 03/24/2009

My Favorite System.Net trace configuration file dumps Process ID and Date Time Information

function CopyCode(elemName) { var obj = document.getElementById(elemName);...

Author: Jeff Sanders Date: 03/24/2009

HttpWebRequest WebExcepton: The remote server returned an error: (407) Proxy Authentication Required.

function CopyCode(elemName) { var obj = document.getElementById(elemName);...

Author: Jeff Sanders Date: 03/24/2009

HttpWebRequest Class does not use Port number in SPN when using Kerberos

function CopyCode(elemName) { var obj = document.getElementById(elemName);...

Author: Jeff Sanders Date: 03/20/2009

Replace SOAP Toolkit and ATLServer Classes with the WWSAPI

SOAP Toolkit is out of support and the ATLServer Classes are not supported in VS 2008. What to do...

Author: Jeff Sanders Date: 03/18/2009

UserAgent call results in error: "Not enough storage is available to complete this operation"

I was able to cause this error in Internet Explorer 6 and Internet Explore 7. I found that editing...

Author: Jeff Sanders Date: 01/13/2009

You receive one or more error messages when you try to make an HTTP request in an application that is built on the .NET Framework 2.0

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

Author: Jeff Sanders Date: 01/07/2009

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...

Author: Jeff Sanders Date: 12/17/2008

<Previous Next>