Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML via ASP not working for me

Status
Not open for further replies.

thehud

Programmer
Apr 19, 2001
2
US
I copied the code for an ASP routine that converts an XML document via XSL to HTML. Fairly simple code, a simple XML doc etc. I am just doing a test so I can learn XML before using it on a project.

But it blows up when I run the ASP script. I get this message:

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/HOA/test.asp, line 3

Invalid class string

Here is the ASP script:

<%
'Load the XML
Set xDoc = Server.CreateObject( &quot;Microsoft.XMLDOM&quot; )
xDoc.async = false
xDoc.load(Server.MapPath(&quot;test.xml&quot;))

'Load the XSL
set xsl = Server.CreateObject(&quot;Microsoft.XMLDOM&quot;)
xsl.async = false
xsl.load(Server.MapPath(&quot;test.xsl&quot;))

Response.Write(xml.transformNode(xsl))
%>

What gives? I have the right dll installed (MSXML.dll and 3 also)
 
Hi.

I'm not sure, but try this way:

<SCRIPT LANGUAGE=&quot;VBSCRIPT&quot; RUNAT=&quot;SERVER&quot;>
dim xmldoc
set xmldoc = Server.CreateObject(&quot;Microsoft.XMLDOM&quot;)
xmldoc.load(Server.MapPath(&quot;sca.xml&quot;))
xmldoc.save(Response)

</SCRIPT>

If you download the last update of XMLDOM from Microsoft (MSXML3.0) you shuld us in create object the following:

Server.CreateObject(&quot;MSXML3.DOMDocument&quot;)

regards, Kirilla
 
Nope. Got the same error message.

I do have the latest version of the driver. It' sreally annoying when I get these kind of errors. It must be something with our server.
 
Hello,
It seems that you have to register your MSXML3.dll in order to get it working.
See what is in MS Knowledge Base
You could register the DLL by yourself or use a workaround (for example as described in download the .cab file, put it in a directory on your IIS server, then launch an html file that calls an xml object, which will do the registration of msxml.dll on your (&quot;client&quot;) machine).
Hope this helps. D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top