Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Problems with ServerXMLHTTP

Hi, it's me again:
Now I'm having a really weird problem.
I'm programming an application that I was testing on my programming computer accessing an XML File on somebody else's computer thru a website. Everything was working fine.
But now, that we were trying to put it on production (one server accessing other server) it displays a message "Automation Server can't create Object". According to what I have found, this error occurs when I'm trying to create the ServerXMLHTTP Object. Can anybody help?
I've found some people saying that it's because the Windows Script 5.6, some other people says that is because the version of the MSXML.
I checked the version on the server and it has the version 6.0 and my prog.computer has both version 4.0 and 6.0. Is this a problem?
About the WS5.6, well I don't know how to check that, because people says that ths files may be corrupted. Can anybody help me with this problem?
Thanks in advance.

Here is my code, in case you need it.

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>Untitled Page</title>

</head>
<body>

<script language="javascript" type="text/javascript">
var bStatus;
var Respuesta;
var xml_doc = new ActiveXObject("Microsoft.XMLDOM");
var url="http://Server/Application?variable";
var xml_http = new ActiveXObject("Msxml2.ServerXMLHTTP.6.0");
xml_http.onreadystatechange = handleStateChange;
xml_http.open("GET",url,false);
xml_http.send();
document.write(xml_http.parseError.Reason)
xml_doc.loadXML(Respuesta);

var attr_nodes
var n_attr
var title_nodes = xml_doc.getElementsByTagName("TAG1");
var n_titles = title_nodes.length;
for (i = 0; i < n_titles; i++){
document.write(title_nodes.item(i).text + "<br>");
}
var lic_nodes = xml_doc.getElementsByTagName("TAG2");
document.write("TAG2:" + lic_nodes.item(0).text + "<br>");

function handleStateChange()
{
if (xml_http.readyState == 4)
{
Respuesta = xml_http.ResponseText;
}
}
</script>
</body>
</html>

Any help?, please
[2520 byte] By [Slowly] at [2007-11-11 8:15:20]