Question

MSXML problems on Windows Server 2003 SE

Asked by: mastallama

Hey Experts,

I have the following code running perfectly fine on a Windows 2000 Server (yes, I wrote the line numbers here):

13   dim objXML, objLst, noOfCharacters, attr, attr3, attr4, n_attr, k, attr2, rank
14   Set objXML = Server.CreateObject("Microsoft.XMLDOM")
15   objXML.async = False
16   objXML.Load ("http://www.wowarmory.com/guild-info.xml?r=Thorium+Brotherhood&n=Guardians+of+Destiny")
17  
18   Set objLst = objXML.getElementsByTagName("character")
19   noOfCharacters = objLst.length
20   attr = objXML.documentElement.firstChild.firstChild.firstChild.firstChild.nodeName
21   Set attr3 = objXML.documentElement.childNodes(0).childNodes(0).childNodes(0).childNodes(0)
22   Set attr4 = attr3.attributes
23   n_attr = attr4.length

But, when I moved my website over to a Window Server 2003 SE, I get this error:

Microsoft VBScript runtime  error '800a01a8'

Object required: '[object]'

/guildroster.asp, line 22

Now, if you can wave the idea that there's a problem in the code for just a second, I did try the following:

1   dim objXML, objLst, noOfCharacters, attr, attr3, attr4, n_attr, k, attr2, rank
2   Set objXML = Server.CreateObject("Microsoft.XMLDOM")
3   objXML.async = False
4   objXML.Load ("http://www.wowarmory.com/guild-info.xml?r=Thorium+Brotherhood&n=Guardians+of+Destiny")
5   Response.Write objXML.nodeName&"<br>"
6   Response.Write objXML.firstChild.nodeName

And got back this error:

#document

Microsoft VBScript runtime error '800a01a8'

Object required: '[object]'

/test.asp, line 7

The #document was expected but the error on line 7 wasn't.  You can go to http://www.wowarmory.com/guild-info.xml?r=Thorium+Brotherhood&n=Guardians+of+Destiny, right click and view source and see that it has children in the XML document.  When I copied this file to my Win2k server I got the following response:

#document
xml

This is what I expected.

When I inspect the MSXML.DLL files on both server they are of different versions, so I'm thinking that may be the problem, but I can't find any information to back up my theory or to fix it.

Win2K MSXML.DLL Verion: 8.0.6730.0
Win2k3 MSXML.DLL Version: 8.0.7002.0


I don't know what to do, I need the site up on the new server but I don't know what I should change to make it work.

Here's the page on the Win2k server: http://www.jeremysouthard.org/god/guildroster.asp
Here's the page on the Win2k3 server: http://www.guardians-of-destiny.net/guildroster.asp

My test file on Win2K server: http://www.jeremysouthard.org/god/test.asp
My test file on Win2k3 server: http://guardians-of-destiny.net/test.asp

Thanks in advance.

MastaLlama

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2007-09-08 at 16:18:45ID22815578
Tags

2003

,

windows

,

msxml

,

server

Topics

Windows 2003 Server

,

Active Server Pages (ASP)

,

Windows 2000 Server

Participating Experts
1
Points
500
Comments
22

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. how to load XML doc with DOCTYPE decl in MSXML ?
    This is how I know how to load a well-formed XML doc into MSXML via Visual C++. _bstr_t bstrFileName; bstrFileName = strFileName.AllocSysString(); // call the IXMLDOMDocumentPtr's load funct...
  2. MSXML confusion
    Greetings I am trying to make use of the MSXML dll to do a couple of things in C++/COM with XML. After downloading a couple tutorials and looking for documentation, I am somewhat confused. I am coding on a Win2K system, and here is a little test program: #include "stdaf...
  3. MSXML
    Does the latest version MSXML parser process schemas written in the w3c format (example below) or do you have to write the schema in the microsoft format ? <?xml version="1.0" ?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" ...
  4. XML to PDF with MSXML
    halo there i have a simple xml file say for e.g <book> <name>abc</name> <author>xyz</author> </book> i wanted to be connverted to a PDF file (Acrobat Reader) using MSXML technology(not JAVA and cocoons/servlets and apache) how wud ...
  5. MSXML problem
    Are there any known problems with MSXML objects specific to Windows 2000 SP 4?

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: acperkinsPosted on 2007-09-08 at 17:22:03ID: 19854906

>>When I inspect the MSXML.DLL files on both server they are of different versions<<
You hit the nail on the head.

Instead of:
Set objXML = Server.CreateObject("Microsoft.XMLDOM")

Use:
Set objXML = Server.CreatObject('MSXML2.DOMDocument')

 

by: mastallamaPosted on 2007-09-08 at 20:54:29ID: 19855561

I still get this error:

#document

Microsoft VBScript runtime error '800a01a8'

Object required: '[object]'

/test.asp, line 7

(See http://www.guardians-of-destiny.net/test.asp - I changed to code to use MSXML2.DOMDocument)

Yeah, I tried all variations of the different versions there and get the same error... except with MSXML2.DOMDocument.6.0, with that one I just get "Access Denied"

Maybe I missed one, here's the list of the ProgIDs I've tried:
Msxml.DOMDocument, Msxml2.DOMDocument, Msxml2.DOMDocument.3.0, Msxml2.DOMDocument.4.0, Msxml2.DOMDocument.6.0

 

by: acperkinsPosted on 2007-09-09 at 10:31:41ID: 19857437

I am afraid I have no idea.

 

by: mastallamaPosted on 2007-09-09 at 15:47:04ID: 19858170

Well, does anyone know how I can "downgrade" my MSXML.DLL file to version 8.0.6730.0?  I shuddered when I actually tried copying the DLL from 2k to 2k3 but 2k3 seemed to have some kind of fail safe and put the correct file back.

 

by: acperkinsPosted on 2007-09-09 at 17:22:23ID: 19858367

You will need to find the original installation of MSXML. The oldest version that you can download from MS is version 3.0.

Having siad that you should consider that you are putting yourself at serious risk, by installing such an old version (nearly 10 years old)

 

by: mastallamaPosted on 2007-09-10 at 07:15:46ID: 19861100

Well, maybe I should try opening a ticket with MS and see if they've come across this problem before and have a solution for it.  The MSDN has seemed broken for sometime as far as searching goes and a Google search of the MSDN site didn't really turn much.

Does anyone have any other ideas?

 

by: mastallamaPosted on 2007-09-11 at 19:39:46ID: 19873548

Ok, before calling Microsoft I double checked the version numbers of my DLLs.  The ones on my 2k3 server aren't even listed as "official" so I double checked my auto updates and low-and-behold, they were turned off.  I've got an entire service pack and 23 other updates to do.  The 1st of the 23 is an XML Core Service Update so we'll see what happens after all this finishes.

 

by: mastallamaPosted on 2007-09-12 at 06:05:11ID: 19875823

Ok, same problem.  I'm going to open a trouble ticket with my hosting service company.

 

by: mastallamaPosted on 2007-09-12 at 10:35:38ID: 19878370

I tried my same script on a Windows Server 2003 at work (my real job).  I got the same error.  It seems something changed somewhere with the XML Core stuff, now I just have to find it.  I will continue to update what happens here until I get an answer from MS about this.

 

by: mastallamaPosted on 2007-09-12 at 11:20:01ID: 19878738

I've made a few changes to the code and now I'm getting a different error...but I'm getting an error because I've change it to do error handling.  I'm still now sure why this error is coming up but here's what I have.

CODE:::::::::::::::::::::::::::::::::::
Set objXML = Server.CreateObject("Msxml2.DOMDocument")
objXML.async = False
objXML.setProperty "ServerHTTPRequest", True
ReturnValue = objXML.Load ("http://armory.worldofwarcraft.com/guild-info.xml?r=Thorium+Brotherhood&n=Guardians+of+Destiny")

If ReturnValue = False Then
      Set XMLError = objXML.parseError
      Response.Write XMLError.ErrorCode&"<br>"
      Response.Write XMLError.Reason&"<br>"
      Response.Write XMLError.URL&"<br>"
Else
      Response.Write "?"
End If
Response.End
CODE:::::::::::::::::::::::::::::::::::

RESPONSE::::::::::::::::::::::::::::
Msxml2.DOMDocument
-1072896675
Processing instruction was not closed.
RESPONSE::::::::::::::::::::::::::::

 

by: mastallamaPosted on 2007-09-12 at 11:20:43ID: 19878743

oops, posted wrong...

RESPONSE:::::::::::::::::::::::::::
-1072896675
Processing instruction was not closed.
http://armory.worldofwarcraft.com/guild-info.xml?r=Thorium+Brotherhood&n=Guardians+of+Destiny
RESPONSE:::::::::::::::::::::::::::
 

 

by: acperkinsPosted on 2007-09-12 at 20:56:05ID: 19881572

The following code seems to load fine for me:

<%
Set objXML = Server.CreateObject("Msxml2.DOMDocument")
' objXML.async = False
' objXML.setProperty "ServerHTTPRequest", True
ReturnValue = objXML.Load("http://armory.worldofwarcraft.com/guild-info.xml?r=Thorium+Brotherhood&n=Guardians+of+Destiny")

If ReturnValue = False Then
      Set XMLError = objXML.parseError
      Response.Write XMLError.ErrorCode&"<br>"
      Response.Write XMLError.Reason&"<br>"
      Response.Write XMLError.URL&"<br>"
Else
      Response.Write "?"
End If
Response.End
%>

 

by: mastallamaPosted on 2007-09-13 at 05:23:28ID: 19883009

On what server?  What response to you get back???


When I run it on W2k I get

?


When I run it on W2k3 (I tried on 2 separate servers)

I get

-1072896675
Processing instruction was not closed.
http://armory.worldofwarcraft.com/guild-info.xml?r=Thorium+Brotherhood&n=Guardians+of+Destiny

 

by: acperkinsPosted on 2007-09-13 at 16:27:05ID: 19887834

You are right.  I only tested it against Windows 2000.

 

by: mastallamaPosted on 2007-09-16 at 15:37:28ID: 19901823

Ok, I'm still not sure what's going on.  I opened a support request with Microsoft and I setup these 3 tests:

MSXML Tests on Windows 2000 Server SP 4: http://www.jeremysouthard.org/GoD/MSXML_Test.asp

MSXML Tests on Windows 2003 SE SP 2: http://www.guardians-of-destiny.net/MSXML_Test.asp

MSXML Tests on Windows 2003 R2 SP 2: http://67.96.168.138:18080/Test/MSXML_Test.asp

I'll keep things up to date here as to what Microsoft says.

 

by: mastallamaPosted on 2007-09-17 at 10:13:51ID: 19906526

It seems my problem isn't good enough for them.

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Response from Microsoft - 9/17/2007 3:58:13 AM
From: Yawei Wang
Sent: Monday, September 17, 2007 4:57 PM
To: 'jeremy@e-ajdesigns.com'
Subject: SRZ070916000068

Hi Jeremy,

Thank you for contacting Microsoft. After checking the case log, I found that this case is within Advisory support scope instead of Incident support scope. However, for professional level support, we dont provide Advisory support. So I will close this case as non-decrement. Thanks for your understanding!

Have a good day!
Yawei
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

I replied with the following
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 Hello Yawei,

I'm confused. You said "I found that this case is within Advisory support scope instead of Incident support scope."...what does this mean?

I am not asking for "help" to develop anything, I am asking for support on a Microsoft DLL file that is not returning the same results on 2 different operating systems after I've searched Microsoft's support site and the MSDN for a reason or update that could cause such an issue.

I do expect support on this "incident" of the MSXML DLL not returning what it should.

Thanks,
Jeremy Southard
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

I'll keep updating...

 

by: mastallamaPosted on 2007-09-18 at 03:49:36ID: 19911585

I had a new message today:

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Response from Microsoft - 9/18/2007 4:42:43 AM
From: Yawei Wang
Sent: Tuesday, September 18, 2007 5:42 PM
To: 'jeremy@e-ajdesigns.com'
Subject: SRZ070916000068

Hi Jeremy,

Sorry for the late response&. I have transferred the case to the proper technical resource. They will contact you shortly. Thanks again for your cooperation and understanding!

Have a good day!
Yawei
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

 

by: mastallamaPosted on 2007-10-19 at 07:22:32ID: 20109092

Well, a month later and Microsoft just now finally understands my problem.  I'll post back if a solution is found.

 

by: mastallamaPosted on 2007-12-04 at 15:21:48ID: 20407619

No solution yet but we've figured out the problem is with the <stylesheet> tag in the XML.

 

by: mastallamaPosted on 2008-02-20 at 08:47:37ID: 20939530

Well, I'm still working with Microsoft on this issue.  I'm going to request a PAQ/Refund if there's no objections.

 

by: acperkinsPosted on 2008-02-20 at 10:17:21ID: 20940355

That is fine with me.

 

by: mastallamaPosted on 2008-02-20 at 12:33:36ID: 20941614

Actually, there's no reason to not give you the points acperkins.  :)  You did help me, even if it wasn't the answer I was looking for.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...