msxml3.dll error ‘80070005′
Posted by Sean RyanSep 19
This little error is causing some trouble for developers, particularly those in charge of maintaining legacy code in VB and vbscript. The trouble has stemmed from a recent microsoft service pack: Microsoft Security Bulletin MS07-042 - Critical (Vulnerability in Microsoft XML Core Services Could Allow Remote Code Execution (936227))
I have seen this everywhere on my travels across Google. People are trying all kinds of things to fix the error in the title. It may also manifest itself as msxml2.dll error ‘80070005′ Access Denied. There was a critical patch needed to secure things further, so it’s a good thing to take care of. That doesn’t take care of the headache.
So, to the code.
Should you have something similar to:
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
Replace it with something like:
Set xml = Server.CreateObject("MSXML2.ServerXMLHTTP.4.0")
I hope this helps.







Oh Man. I’ve been looking for this answer for 2 weeks. Everybody else is way off in left field. Most don’t have a clue (forums.devshed.com, www.asp101.com, even support.microsoft.com), all were wrong or worse, misleading. But you nailed it perfectly. Thank you very much!
- Larry
I am delighted this helped. I had some fun chasing this down also.
[…] Microsoft Security Bulletin MS07-042 - Critical (Vulnerability in Microsoft XML Core Services Could Allow Remote Code Execution (936227)) @virginiageek : This is not the solution for my problem, as I was encountering the same problem running a vbscript obtaining files from the internet. I did manage to solve it by replacing the lines in the vbscripts containing references to the former Microsoft.XmlHttp object E.g. ‘ Set Http = CreateObject("Microsoft.XmlHttp") into Set Http = CreateObject("MSXML2.ServerXMLHTTP.4.0") Many thanks and credits to Sean Ryan who posted it to hireageek.net » Blog Archive » msxml3.dll error ‘80070005′ BR, T. […]
Hi. im not very familiar with the techy softwares…though i am facing the same problems as above. Seems like you have a solution but i dont know how to go about it.
How do get to the code?
“So, to the code.
Should you have something similar to:
Set xml = Server.CreateObject(”Microsoft.XMLHTTP”)Replace it with something like:
Set xml = Server.CreateObject(”MSXML2.ServerXMLHTTP.4.0″)”
Thanks
Tarek,
within the code you have (find the page with the problem in your solution), open in a text based editor like Notepad (or better, Notepad++) and find the lines that read like the problem line
Microsoft.XMLHTTP… and replace this with the line supplied. You don’t need to change anything else. This will call a new object that works much the same as the former. The new object will provide the working model.
I hope this helps.
Sean
I am having the 80070005 problem when ’search for Windows Updates’ is started. I don’t understand where to go to change the setting referred to above.
A search of the Vista Home Premium register brings up nothing. Can you help please?
OK, this is a different problem, yet still access related. I found some sparse details on the web. Here’s what I would try. First, set a recovery point on your machine. Also, note where other recovery points are (last known good configuration). Open your services (Start > Run > Services.msc) console and find Windows Module Installer. Is it started? I believe this needs to be started to run the update. I hope this helps. Note: “This is not something I have tried.”
Here’s a link to eggheadcafe: http://www.eggheadcafe.com/software/aspnet/30433566/windows-update-error-code.aspx
Sean
where do you find this code:
Set xml = Server.CreateObject(”Microsoft.XMLHTTP”)
and replace with other code?
i have 80070005 error i got to fix it pelase help.
Damn can someone help me with this. WIndows Live got to be so freaking complicated why can’t they just let you install the program with no dang problems. Thanks.
Hi Sean
The services.msc console was set to run manually and was not started. Following your advice seems to have completely cured the problem.
Thanks very much for the time and effort you put in to help me out with this. Much appreciated.
Owen
Owen, you are welcome.
Patryk, sorry - I’ve been on vacation. Per your 80070005 error: is it on a webpage? If yes, please read my response to Tarek. Let’s say it’s a page like hello.asp; open with Notepad by right clicking the file (if you have access to the file under IIS - generally inetpub\wwwroot) and visually find the line and delete it or place a tick ‘ mark to comment it out. Put the new code in its place. If it is not a webpage - please look at the link I provided to egghead cafe. This goes through other rights based scenarios.
Patryk: I found this from LUKEYP on http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=1228191&SiteID=17. Please visit the site and see if it is the same WinLive problem you’re having.
————————–
1f62OH MY GOD thank you I’ve beeen having this problem for 2 months thank god I found this website. Thanks a lot man.
[…] Re: error 80070005 @virginiageek : This is not the solution for my problem, as I was encountering the same problem running a vbscript obtaining files from the internet. I did manage to solve it by replacing the lines in the vbscripts containing references to the former Microsoft.XmlHttp object E.g. ‘ Set Http = CreateObject("Microsoft.XmlHttp") into Set Http = CreateObject("MSXML2.ServerXMLHTTP.4.0") Many thanks and credits to Sean Ryan who posted it to ‘hireageek.net » Blog Archive » msxml3.dll error ‘80070005′’ (http://www.hireageek.net/wordpress/?p=12) BR, T. — mr_t Posted via http://www.vistaheads.com « Critical Updates | Defender » […]
OH MY GOD thank you!I’ve been having this problem for 2 hours thank god i found this website.Thank a lot man.
unfortunetly this did not solve my problem so maybe someone can go further with me. i get the error with msn and havent been able to sign in for weeks. I have different error for windows mail and windows live mail so have deleted and turned off everything. Also at the same time i started having problems with my poker software. I have antivirus and everything is turned off for email scanning so mine is a multiple problem…anyone????
Use this advice at your own risk. Her’s what I’d do. First, try going back to a previously good restore point. What’s that? Open your Help and Support Center (click start > Help and Support) choose Undo changes to your computer with Restore Point under Pick a task (Assumes WinXP). Follow through the prompts to find an earlier time before the system started to mess up. See if that helps.
If that doesn’t help, I’d ask when is the last time you rebuilt your machine? If you cannot get online, there are ways to save your files to an external drive prior to reinstalling your operating system and deleting everything. They are relatively inexpensive and easy to use. I use the Western Digital MyBook 350GB. It is under $100 and I find it easy to use - but CNET user reviews haven’t been kind - so you may talk to a pro at one of your favorite geek stores. If you manage to get online consider skydrive http://skydrive.live.com/. You can read a review here: http://www.teknobites.com/2008/12/04/get-25gb-of-free-online-space-with-skydrive/. As for the Poker software - it may be coincidental. So many things may be responsible for your issue, it is hard to provide much else. Good luck.
Thanks, this helped!
i am having the same problem. already try to change the code but still cannot work…please assist..
Set xml_http = Server.CreateObject(”MSXML2.ServerXMLHTTP”)
xml_http.Open “GET”, Request.ServerVariables(”HTTP_REFERER”), False
xml_http.Send
strContent = xml_http.responseBody
Set xml_http = Nothing
It has been quite a while since I’ve touched my site. I’ve been pretty busy. Considering the date on your request for assistance, I may gather that you may be working with Win7 or 2008 Server. If this is the case, you have IIS7.5 most likely and the newest incarnation of MSXML. Try 2 things: First, try using the MSXML6.0 reference “Msxml2.XMLHTTP.6.0
Set xml = Server.CreateObject(”MSXML2.ServerXMLHTTP.6.0″)
Oh, second thing: If this doesn’t work, check with your security team if appropriate to make sure the request isn’t blocked. Good luck!
Sean
where is the notepad that i can change the line there. please give me the location.
Asif, are you working with application code in ASP or ASP.NET? What are you trying to do? Find the webpage where you’re having the issue and right click and say “Open with Notepad”.
Good luck.