I have created an ActiveX control (OCX) that is embedded within a web page.
I use Internet Explorer to access the control. I have set all of the IE
security settings to allow the control to display as it is not yet signed. I
used the Package and Deployment Wizard (PDW) to create the CAB file and the
web page that installs the OCX. I've discovered that when I access the web
page it does download the CAB file as I am prompted for permission to
download and install it. Watching my temp folder I see a temp folder gets
created where the CAB files are extracted to. This is where the failure
occurs. Immediately this temp folder gets deleted and the install stops and
thus the OCX is never displayed. Searching my hard drive I see that the OCX
or any of the other files in the CAB file get copied over and installed.
I've tried marking the control as safe for scripting & initialization even
though it isn't a control that needs to be scripted.
I've tried not marking it as safe for scripting.
I've tried including all of the files within the project, i.e. VB runtimes,
versus downloading them from the Internet.
I've tried incrementing the version number of the OCX.
I've tried copying all of the install files in the CAB file to the target's
temp folder and then right clicking on the INF file. This did indeed copy
the files to the proper folders but it did not allow the OCX to display in
the web page. When I searched for the CLSID for the OCX I see that it did
not register. Manually registering the OCX does allow the OCX to display.
In essence, accessing the web page that begins the install fails. What in
the $%&*@ could I be doing wrong? How can I troubleshoot this further? I
have verified that all of the necessary files are within the CAB file. The
web page the PDW created for displaying and installing the OCX looks like
this:
<HTML>
<HEAD>
<TITLE>MYCAB.CAB</TITLE>
</HEAD>
<BODY>
<OBJECT ID="uc"
CLASSID="CLSID:35180B14-5D99-42C4-92EE-79D8809D2C30"
CODEBASE="MYCAB.CAB#version=0,0,0,1">
</OBJECT>
</BODY>
</HTML>
The OCX is nothing fancy. It's nothing more than a UserControl with standard
VB controls on it.
Does anyone have any possible idea what I could be doing wrong?
JW
Jerry West - 14 Oct 2004 06:34 GMT
I have finally resolved this issue. As it turns out, it was a Microsoft bug.
The following KB document details the issue: Q254166
JW
>I have created an ActiveX control (OCX) that is embedded within a web page.
>I use Internet Explorer to access the control. I have set all of the IE
[quoted text clipped - 49 lines]
>
> JW