|
-
Feb 8th, 2002, 03:58 PM
#1
Thread Starter
Lively Member
Control doesn't work on clean machine
I have been working on developing an ActiveX control that will be used over an intranet. It uses the Internet Transfer Control, Winsock, SystemMonitor, and a few Database Connections (using Microsoft ActiveX Data Objects 2.6). If I load this control onto our server, and then access it from my computer (the computer I developed the control with) everything loads fine, and the control works as designed.
However, if I run it on a "clean" machine, one without VB, but still win2k (for SysMon), it doesn't work. The ASP page loads, and I get the security warning with my certificate, and I accept (it is marked safe for scripting and initialization also), it downloads the control, then nothing shows up, just a blank box with a little X in it. Right now, I'm referncing it like this, without a .cab:
<OBJECT ID="MasterControl"
CLASSID="CLSID 061B421-0E10-404E-BA69-D8779430B4CC"
CODEBASE="MasterProject.ocx#version=2,0,0,18">
<PARAM NAME="_ExtentX" VALUE="6200">
<PARAM NAME="_ExtentY" VALUE="1150">
<PARAM NAME="SQLInfo" VALUE="db;UID=userid;PWD=;">
<PARAM NAME="SQLServerName" VALUE="sqlservername">
<PARAM NAME="WebServerName" VALUE="webservername">
</OBJECT>
Should I include the cab? As far as I understand, the only benefit of the cab is to decrease the download time, is this true? Or do I need it to include my references to winsock, ADODB, and so on?
Any help here would be much appreciated, thanks in advance,
Jacob
-
Jun 15th, 2002, 08:37 AM
#2
Fanatic Member
Re: Control doesn't work on clean machine
Originally posted by Jacob438
I have been working on developing an ActiveX control that will be used over an intranet. It uses the Internet Transfer Control, Winsock, SystemMonitor, and a few Database Connections (using Microsoft ActiveX Data Objects 2.6). If I load this control onto our server, and then access it from my computer (the computer I developed the control with) everything loads fine, and the control works as designed.
However, if I run it on a "clean" machine, one without VB, but still win2k (for SysMon), it doesn't work. The ASP page loads, and I get the security warning with my certificate, and I accept (it is marked safe for scripting and initialization also), it downloads the control, then nothing shows up, just a blank box with a little X in it. Right now, I'm referncing it like this, without a .cab:
<OBJECT ID="MasterControl"
CLASSID="CLSID 061B421-0E10-404E-BA69-D8779430B4CC"
CODEBASE="MasterProject.ocx#version=2,0,0,18">
<PARAM NAME="_ExtentX" VALUE="6200">
<PARAM NAME="_ExtentY" VALUE="1150">
<PARAM NAME="SQLInfo" VALUE="db;UID=userid;PWD=;">
<PARAM NAME="SQLServerName" VALUE="sqlservername">
<PARAM NAME="WebServerName" VALUE="webservername">
</OBJECT>
Should I include the cab? As far as I understand, the only benefit of the cab is to decrease the download time, is this true? Or do I need it to include my references to winsock, ADODB, and so on?
Any help here would be much appreciated, thanks in advance,
Jacob
The CAB will include your references etc. Make one for your file with Package and Deplyment Wizard and look inside it with Wnzip and you will see what should have been shipped to the new machine
 Looking for a friendly intelligent chat forum? Visit the white-hart.net 
-
Jun 16th, 2002, 09:03 PM
#3
PowerPoster
Don't know how it affects COM distribution, but you may want to compile the .OCX with Binary Compatability set.
-----------------------------------------
-RJ
[email protected]
-----------------------------------------
-
Jun 18th, 2002, 12:35 AM
#4
Addicted Member
You have to make a CAB File
Hi,
You have to make a CAB file using Package and Deployment Wizard and then include the CAB in the Object tag. Since the CAB file will have all the reference DLLs(for example MSVBVM60.DLL), these DLLs are required in a fresh machine for the OCX to execute.
Pres.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|