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