Access denied error '80070005' with msxml4 on Win2k3
This error drove me nuts the first time I saw it:
msxml4.dll error '80070005'
Access is denied.
I got it making a simple http request using MSXML with VBScript:
set oXMLRequest = CreateObject("MSXML2.ServerXMLHTTP.4.0")
oXMLRequest.open "GET", “http://www.microsoft.com“, false
oXMLRequest.send
The problem is that the default policy on Win2k3 prevents browsing from the server. Using Microsoft XML 3.0 works but 4.0 is better.
The following registry patch fixes the problem (as always; use at your own risk):
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\CurrentVersion\Internet Settings]
"Security_HKLM_only"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1]
"1601"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2]
"1601"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3]
"1601"=dword:00000000
msxml4.dll error '80070005'
ReplyDeleteAccess is denied.
I got the same error in asp code running on win2k. I have MSXML 4.0 SP2 installed on win2k server.
Set xml = CreateObject("Msxml2.XMLHTTP.4.0")
Actual error was shown at line
xml.send ""
I changed it to
Set xml = Server.CreateObject("Msxml2.ServerXMLHTTP.4.0")
and it worked properly.
God bless you.
ReplyDeleteSet xml = Server.CreateObject("Msxml2.ServerXMLHTTP.4.0")
worked
where
Set xml = CreateObject("Msxml2.ServerXMLHTTP.4.0")
would not.
Thanks!