ActiveX object not loading in IE

Tech-Archive recommends: Fix windows errors by optimizing your registry



I hope this is the right group...

I've built an ActiveX object using Visual Studio 2005. The object has one
class and one method called Run().

I've built a web page which is shown below. The problem is on some systems
the page generates an object expected error when it tries to call the Run()
command. On other systems the Run() command executes fine. It appears that
the dll is being registered fine, as I've looked in the registry and found
the entries for the classes and guids. Are there other settings I need to
set to allow it to run? We've tried this in IE 6 and 7.

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

function runapp()
{
alert("1");

var p = null;
if(document.getElementById)
{
p = document.getElementById("IHARAP");
}
else if (document.layers)
{
p = document.layers["IHARAP"];
}
else if (document.all)
{
p = document.all("IHARAP");
}

alert(p); //<<-- returns "[Object]" always which is good
p.Run(); //<<-- error happens here
alert("2");
}
</script>
<body>
<form id="form1" runat="server">
<div>
<object id="IHARAP"
CLASSID="clsid:{3140F2C1-B7B8-4FA3-B960-3F0459237757}"
CODEBASE="http://testsite/iharap.dll#Version=1,00,0000";
BORDER="0" VSPACE="0" HSPACE="0" ALIGN="TOP" HEIGHT="0%" WIDTH="0%"
onreadystatechange="runapp()">
</object>

</div>
</form>
</body>
</html>


.



Relevant Pages

  • Re: ActiveX object not loading in IE
    ... I've built an ActiveX object using Visual Studio 2005. ... On other systems the Runcommand executes ...
    (microsoft.public.win32.programmer.ole)
  • Re: unhandled exception in the designer
    ... Microsoft Visual Studio ... not built with debug information. ...
    (microsoft.public.dotnet.framework.windowsforms.designtime)
  • Trouble building pywin32 with Visual Studio 2005
    ... I'm embedding Python in an MFC application. ... I've manually built ... Python .lib and .dll files using Visual Studio 2005 from the solution/ ... When I use pre-built pywin32 packages, ...
    (comp.lang.python)
  • Re: Any Value in a Registry Cleaner in Windows XP?
    ... The built in firewall that comes with XP is not a good selection over using ... ZoneAlarm at their web site. ... The one 'registry cleaner' recommended in PC Magazine is the one that is ...
    (microsoft.public.windowsxp.general)
  • Re: Creating Apps for Users Without Access
    ... To create an Access 2003 runtime application you need VSTO. ... Doug Steele, Microsoft Access MVP ... implement runtime I would need Visual Studio 2005 tools for office? ... It's not built in, but it is free. ...
    (microsoft.public.access.formscoding)