' TestWinHttp.vbs
' Try creating the WinHttpRequest object from WinHTTP 5.0
Dim whr
Set whr = CreateObject("WinHttp.WinHttpRequest.5")
whr.Open "GET", "http://test", False
Set whr = Nothing
WScript.Echo "WinHTTP 5.0 is OK"
If running this test script produces an error message, then something is
wrong with your WinHTTP 5.0 installation.
If WinHTTP5.DLL is registered properly (and the above script runs without
error), then there is something wrong with MSXML4 SP2. You should call
Microsoft PSS for assistance about this. MSXML4 SP2 will use WinHTTP 5.1 if
it is available in the OS, otherwise it will use WinHTTP 5.0 instead. Since
WinHTTP 5.1 is *not* available on Windows 2000 Datacenter SP4, MSXML4 SP2
should use WinHTTP 5.0.
Stephen
"TIA" <anon...@discussions.microsoft.com> wrote in message
news:D016242A-CA19-4359...@microsoft.com...
> Hi all
>
> I am trying to use a dll which used to reference msxml3.dll but has been
changed to use msxml4.dll instead. The new version is working fine on most
computers but on a couple, it no longer works and throws an error:
>
> System.Runtime.InteropServices.COMException (0xC00CE23B): WINHTTP5.DLL or
higher must be registered to use the ServerXMLHTTP object.
>
> WINHTTP5.dll is showing up in the registry editor and I've tried
registering it and unregistering it using regsvr32 but no change. I
installed msxml4 SP2 via the msxml4.msi and I have IE6 installed on the
computer as well.
> Most (but not all) of the computers it is working on have winhttp5.1
installed. The computer that is is not working is Windows2000 DataCenter
Server and winhttp5.1 does not come in the service packs for this version
and I cannot find anywhere to download winhttp5.1. I've tried copying the
5.1 version of winhttp.dll from a working computer and registering it on the
Datacenter server but still has the problem.
>
> More details about the OS version: 5.0.2195 Service Pack4 Build 2195
>
> Any ideas?
> Thanks
>
>
It appears that a previous installation of MSXML4 Service Pack 2 got
hosed, and no amount of uninstalling/re-installing would fix it.
I did a search for winhttp*.dll and found a really old (modified August
21, 2002, 10:30:32 AM) version in my C:\WINDOWS\ProPatches directory. A
much more recent version (October 20, 2004, 6:22:44 PM) was found in an
obscure service pack/windows update directory. I un-registered the old
dll, registered the new one and BAM it worked.
Note: the filesize on the old one was 302KB and the new one is 332KB, in
case you're digging around.