0

Hi,
i tried to use the ActiveXObject("CiscoURLProxy.URLGrabber"), but when i run the code it gives the following :

Error Type:

Microsoft JScript runtime (0x800A01AD)
Automation server can't create object

please help me to fix it .
here is a part of the code :

<%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>
<% 
Response.ContentType = "text/xml"; 
function removeTags(HTMLString) {
        txt = HTMLString.replace(/<[^<]*>/g, ""); // Strip all the tags in this form <tags>
        txt = txt.replace(/&nbsp;/g, " "); // Replace &nbsp; to space
        return txt;
    }
    Proxy = new ActiveXObject("CiscoURLProxy.URLGrabber");
    p = String(Proxy.GetURL("http://www.hko.gov.hk/wxinfo/currwx/current.htm"));

%>

Edited by mike_2000_17: Fixed formatting

3
Contributors
3
Replies
4
Views
10 Years
Discussion Span
Last Post by snep
0

This error is a pretty generic Object Creation Failur message, but there are few things you can check.
- Check if this object is registered properly on this machine.
- Check if you have proper access permissions to that object.
- Also get the latest version of Microsoft XML Parser and install it properly.
- These should take care of the problem

0

Thanks Binjoy..

Registering msxml.dll,msxml2.dll,msxml3.dll,msxml4.dll and msxml6.dll fixed my problem.

e.g. regsvr32 msxml.dll and so on

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.