Solved

HELP!!! - Installation of MSXML Parser 4.0 SP1

Posted on 2002-05-05
6
842 Views
Last Modified: 2011-10-03
I have an ASP page that uses the Microsoft XML Parser.
I had msxml4.dll (Ver 4, not SP1 and not the pre-April 2001 release) installed, the actual version was 4.08.  In my ASP page I use the following to instantiate the XML DOM object:

Set objXMLDoc = Server.Createobject("MSXML2.DOMDocument")

Now, I just updated my server to the MSXML 4.0 SP1 parser (version 4.10) and the page now throws the error pointing to the object creation line:

Server object error 'ASP 0177 : 80040111'
Server.CreateObject Failed
ClassFactory cannot supply requested class

Why won't my CreateObject method work with this new version?  I have tried changing the line to:
Set objXMLDoc = Server.Createobject("MSXML.DOMDocument")
and
Set objXMLDoc = Server.Createobject("MSXML2.DOMDocument.4.0")
but neither of those work either.  This upgrade caused my entire site to go down and I can't find out how to "roll-back" to the non-SP1 version. I am in a bind here, so any help is appreciated.
0
Comment
Question by:bmccleary
  • 3
  • 3
6 Comments
 

Author Comment

by:bmccleary
ID: 6990787
BTW - I am using the same reference to instantiate the parser from a VB component that I am using as well and the VB component doesn't have any problems... it's only with my ASP page.  I referenced MS XML 4.0 and used "Dim objXMLDoc As MSXML2.DOMDocument" to instantiate the parser.
0
 
LVL 23

Expert Comment

by:b1xml2
ID: 6990914
Brian,

1. what Operating System are you using?
2. what MSIE version is on the server?

Notes
=====
1. I have installed MSXML4 SP1 on top of MSXML4 for Windows 2000 Professional, Windows 2000 Server and Windows 2000 Advanced server. There was no problems encountered. Remember to close all objects which use MSXML4. This includes any COM or COM+/MTS Objects (in short, reboot box if you are using COM+/MTS as shutting down the services do not guarantee that the pointers are properly released)

2. Remember that there was the July and April releases of MSXML4 be4 it went gold. Uninstall all MSXML4 of these beta versions be4 you proceed.

3. You would have installed Windows Installer 2.0  be4 you could install MSXML4 RTM+.




0
 

Author Comment

by:bmccleary
ID: 6991243
b1xml2,
Thanks for the response!  Here's the low-down on my configuration.  I did the development on one of our testing machines running W2K Professional.  It had MSXML 4.08 installed (I believe that this was the non-SP1 version, but it was downloaded and installed within the past 6 months, so it should not be the older releases).  It worked perfectly for development, then when I rolled it out onto the production server which is W2K Advanced Server which had MSXML 4.0 SP1 installed, then I got the error.  To test out what was causing the error, I installed the SP1 on my machine and it caused the same error.  According to Microsoft (http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/001/766/msdncompositedoc.xml) they recommend unregistering the DLL's before install, but only for the pre-releases.  I did not do this, but after the error, I did uninstall MSXML 4.0, reboot, delete the dll's, reboot again, and reinstall, and it did not fix the problem.  It sounds like the component interface changed between releases.  Does this help?  Am I using the correct call to instantiate the object?
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 23

Accepted Solution

by:
b1xml2 earned 100 total points
ID: 6991279
>>
ClassFactory cannot supply requested class
<<

generally indicates that the browser is of the wrong version. If i might hazard a guess, the difference between the dev box and the server is the MSIE version yes? If that is the case, upgrade to MSIE 6 on the Server. I have had developers telling me that MSXML4 requires MSIE 6 or else it will break but I have not had the luxury of checking out their claims.

Also, have you installed Windows Installer 2.0 be4 you installed MSXML4 on the Advanced Server?
0
 
LVL 23

Expert Comment

by:b1xml2
ID: 6991282
Also,

if you have MSXML3 installed on your box, as an interim measure, use the progid "Msxml2.DOMDocument.3.0". To call MSXML4, you are using the right progid "Msxml2.DOMDocument.4.0"
0
 

Author Comment

by:bmccleary
ID: 6991487
I did have MSIE 6.0 already installed, so I don't know what fixed the problem, but it is fixed now.  I had to completly uninstall MSXML and reinstall IE6 and MSXML and the problem seemed to fix itself.  Also, I did have to use the "MSXML2.DOMDocument.4.0" reference instead of the "MSXML2.DOMDocument". Thanks for info!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.NET and XML parsing 6 66
XML Paring  Error - Premature end of file. 7 80
XSLT: Is it possible to assign number format from a variable? 5 38
XML XSL Message 3 14
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…
Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

867 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now