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"));

%>

Recommended Answers

All 3 Replies

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

Hope you tried my steps. let me know.

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.