Solved

HELP!!! - Installation of MSXML Parser 4.0 SP1

Posted on 2002-05-05
6
834 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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

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…
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

744 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

12 Experts available now in Live!

Get 1:1 Help Now