/egilh

Learning by doing

Access denied error '80070005' with msxml4 on Win2k3

Posted on Sunday, August 21, 2005 5:28 PM

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




Feel free to drop a few cents in the tip jar if this post saved you time and money

Post Comment
Title
 

Name
 

Url

Protected by Clearscreen.SharpHIPEnter the code you see:
Comment