Discussion:
ASP Error 0x800A01AD: ActiveX component can't create object: 'WinHttp.WinHttpRequest.5'
(too old to reply)
Stuart Redhead
2003-08-20 16:03:20 UTC
Permalink
I have an ASP script that implements various CreateObject calls. All
load Ok EXCEPT WinHttp.WinHttpRequest.

So far I have tried:
* All the permutations I can think of to name to Object (ie
CreateObject("WinHTTP.WinHttpRequest") etc
* regsvr winhttp.dll (Reported no problems)
* Changing the NTFS permissions on winhttp.dll to give the Internet
Guest Account and Launch IIS Process Account explicit permission to
execute the file

The message that is found in the browser is as follows:
Error Type:
Microsoft VBScript runtime (0x800A01AD)
ActiveX component can't create object: 'WinHttp.WinHttpRequest.5'
/redirector2.asp, line 44

The script is running on the following server configuration:
* Windows 2000 Server, Service Pack 4

If anyone has any ideas how to resolve the problem I will be extremely
grateful. I have just spent 3 full days trying to work out how to fix
this.
Stephen Sulzer
2003-08-20 19:05:47 UTC
Permalink
You might be using the wrong ProgID in the CreateObject calls.

If you are using WinHTTP version 5.1 (DLL name "winhttp.dll"), the ProgID
for the WinHttpRequest component is "WinHttp.WinHttpRequest.5.1" (note the
".5.1").

"WinHttp.WinHttpRequest.5" is the ProgID of the WinHttpRequest component in
WinHTTP 5.0 (DLL name "winhttp5.dll").


Regards,
Stephen
Post by Stuart Redhead
I have an ASP script that implements various CreateObject calls. All
load Ok EXCEPT WinHttp.WinHttpRequest.
* All the permutations I can think of to name to Object (ie
CreateObject("WinHTTP.WinHttpRequest") etc
* regsvr winhttp.dll (Reported no problems)
* Changing the NTFS permissions on winhttp.dll to give the Internet
Guest Account and Launch IIS Process Account explicit permission to
execute the file
Microsoft VBScript runtime (0x800A01AD)
ActiveX component can't create object: 'WinHttp.WinHttpRequest.5'
/redirector2.asp, line 44
* Windows 2000 Server, Service Pack 4
If anyone has any ideas how to resolve the problem I will be extremely
grateful. I have just spent 3 full days trying to work out how to fix
this.
Jonathan Gogan
2003-08-21 11:14:37 UTC
Permalink
Step;
Give a man a fish and he eats for a day
Tell him to use OleView and he can suss his own ProdIds.
Jonathan


"Stephen Sulzer" <sasulzer_at_seanet.com> wrote in message news:***@corp.supernews.com...

You might be using the wrong ProgID in the CreateObject calls.

If you are using WinHTTP version 5.1 (DLL name "winhttp.dll"), the ProgID
for the WinHttpRequest component is "WinHttp.WinHttpRequest.5.1" (note the
".5.1").

"WinHttp.WinHttpRequest.5" is the ProgID of the WinHttpRequest component in
WinHTTP 5.0 (DLL name "winhttp5.dll").


Regards,
Stephen
Post by Stuart Redhead
I have an ASP script that implements various CreateObject calls. All
load Ok EXCEPT WinHttp.WinHttpRequest.
* All the permutations I can think of to name to Object (ie
CreateObject("WinHTTP.WinHttpRequest") etc
* regsvr winhttp.dll (Reported no problems)
* Changing the NTFS permissions on winhttp.dll to give the Internet
Guest Account and Launch IIS Process Account explicit permission to
execute the file
Microsoft VBScript runtime (0x800A01AD)
ActiveX component can't create object: 'WinHttp.WinHttpRequest.5'
/redirector2.asp, line 44
* Windows 2000 Server, Service Pack 4
If anyone has any ideas how to resolve the problem I will be extremely
grateful. I have just spent 3 full days trying to work out how to fix
this.
Loading...