Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Access Denied - msxml4.dll (0x80070005)

Posted on 2003-11-11
4
Medium Priority
?
36,898 Views
Last Modified: 2011-08-18
Error Type:
msxml4.dll (0x80070005)
Access is denied.
/test/test.asp, line 70

Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)

set objSrvHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP.4.0")
objSrvHTTP.open "POST", URL, false
objSrvHTTP.SetRequestHeader "Content-Type","application/x-www-form-urlencoded"
objSrvHTTP.send(strxml) <--- Line 70

I am using MS XML 4.0 SP2

I've read other places that the solution to fix this is to use the resultant pokicy snap in and import the settings from IE to it. I can open that snapin, but everything is greyed out. I made sure the "submit nonencrpyted form data" was enabled for all zones in IE. I also went in and manually enabled it for all zones in the registry.

I have tried testing it on a Windows 2000 Server SP4 web server / Windows XP SP1 client and with the WindowsXP SP1 system hosting the file in IIS and accessing it via http:/localhost/. The error happens on both.

What can I do?

Mike Miller
0
Comment
Question by:MikeMiller
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 26

Expert Comment

by:rdcpro
ID: 9726019
Does the URL require a login?  You can provide a user and password in the open method:

objSrvHTTP.open "POST", URL, false, "myUserName", "foobar"

Regards,
Mike Sharp
0
 
LVL 3

Author Comment

by:MikeMiller
ID: 9726117
No, I had the page working with the original Microsoft.XMLHTPP (or something similar) but when I updated to MS XML 4.0 SP2, this access denied on  msxml4.dll started happening.

It's a fairly well known problem. I have read a lot of stuff on the net about it but none of the solutions has worked for me. I tried the IE settings on the web server. I tried the registry modifications for "submit nonencrpyted form data". I tried giving the IIS IUSR_MachineName full admin rights.

I did manage to get the page working with MS XML 3.0. I unistalled 4.0 and then installed 3.0. I had to change the lines to read:

set objSrvHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP.3.0")

set xmlDoc = Server.CreateObject("MSXML2.DOMDocument.3.0")

I just want to know how to fix it so that I can be using the latest version. You'd think that Microsoft would have the bugs worked out considering its SP2.

Points Increased... I'll try to attract a little more attention.
0
 
LVL 26

Accepted Solution

by:
rdcpro earned 1300 total points
ID: 9726578
Oh, I see now.  I assume you've looked at:

http://support.microsoft.com/default.aspx?scid=kb;en-us;820882#6

It seems that rather than being a bug, it's a tightening of security in SP2, because MSXML 4 SP1 doesn't appear to have the problem.

I do recall running into this issue some months back...and I particularly remember not being able to edit the group security policy from the MMC...I'm afraid I can't remember what I did, and the code is not accessible to me any more...I have a funny feeling I just used MSXML 3 for the communication, and version 4 where I had to use schemas.

Sorry,
Mike Sharp


0
 
LVL 3

Author Comment

by:MikeMiller
ID: 9726780
Wow that worked!

I've tried a few other MS support solutions but none of them worked. None of the resources I found on the net pointed to that Knowledge Base article. It looks like it is doing the same thing as the Resultant Policy snap-in solution although it was all greyed out when I tried to do it through that snap-in. By using the Group Policy snap-in, the options were availble. I didnt have to change any of the settings, but merely importing them into Group Policy fixed the problem.

Thanks!

Mike Miller
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question