Forum Moderators: open
msxml3.dll error '80070005'Access is denied.
/document.asp, line 15
Here is the code from document.asp which causes the problem:
1 <%
2 Response.Buffer = True
3 Dim objXMLHTTP, xml, cid, dtype
4
5 cid = Request.QueryString("cid")
6 dtype = Request.QueryString("type")
7
8 'Create an xmlhttp object:
9 Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")
10
11 ' Opens the connection to the remote server.
12 xml.Open "GET", "http://www.example.com/d?cid=" & cid & "&type=" & dtype, False
13
14 ' Actually Sends the request and returns the data:
15 xml.Send
16
17 Response.Write xml.responseText
18
19 Set xml = Nothing
20 %>
The strange thing is that this only happens occasionally on the pages. I don't understand. I'm no expert coder so if I forgot to post something that would help, please let me know what you need to help diagnose the problem. Any help would be appreciated.
The server is Server 2003 w/ IIS6.
Are you sure it has sufficient permissions (Set under IIS)?
Are you sure the path on line 12 is valid everytime?
What is in the query strings when the page fails
So I would agree with you that it does look like more likely to be the URL on line 12.
I'd like to know how you sort this out.
Matt
[edited by: Matt_C at 4:42 pm (utc) on Nov. 4, 2008]
But you might want to Google DCOM Configuration and Local Security Policies. The 80070005 error is a notoriously ambiguous error. But I would start with those two.
If your skills permit, I did notice a work around using the ServerXMLHTTP component instead. Google keywords msxml3 +80070005 +.Send
Good Luck