473,387 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

ActiveX deployment fails

I am having an issue deploying an ActiveX control. This
is a .NET project in C#. The ActiveX control is written
in VB6. I use the PDW (Package and Deployment Wizard) to
create a .CAB for the control.

The problem is that sometimes the ActiveX control installs
successfully and sometimes it doesn't. We have various
test machines running different operating systems. On one
machine, running Windows 2000, SP4, the control installs
successfully. On another running Windows XP Professional,
SP1, the control does not install. It also fails on other
machines (like the customer's machine) but I do not have a
list of operating systems or other stats on those machines.

The error message I get is this:

*** Code Download Log entry (09 Nov 2004 @ 11:04:57) ***
Code Download Error: (hr = 800c0300) Unknown Error!!
Operation failed. Detailed Information:
CodeBase:http://kwmqasite2/ocx/KwmActiveXControls.CAB
CLSID: {24959835-9D2A-40AA-B6B2-9BA0905D47F0}
Extension:
Type:

LOG: Item KwmActiveXControls.ocx being processed.
--- Detailed Error Log Follows ---
LOG: Download OnStopBinding called (hrStatus = 0 /
hrResponseHdr = 0).
LOG: Item KwmActiveXControls.ocx being processed.
LOG: Item KSPBCO.dll being processed.
LOG: Item scrrun.dll being processed.
LOG: Item msvcrt.dll being processed.
LOG: Item msxml3.dll being processed.
LOG: Item KSCTL.dll being processed.
LOG: Item winhttp.dll being processed.
ERR: INF Processing: Failed (800c0300) processing:
winhttp.dll. Cannot get primary/default language!LOG: URL
Download Complete: hrStatus:0, hrOSB:800c0300,
hrResponseHdr:0,
URL:(http://kwmqasite2/ocx/KwmActiveXControls.CAB)
LOG: Reporting Code Download Completion: (hr:800c0300
(FAILED), CLASSID: 24959835..., szCODE:
(http://kwmqasite2/ocx/KwmActiveXControls.CAB),
MainType:(null), MainExt:(null))

Researching this on Google does not reveal a heck of a
lot. This issue seems to be common and no one has
discovered the underlying cause or a solution.

Grasping at straws, I put together a table of the dlls in
the log and the versions.

DLL .cab file Windows 2000 Windows XP
(succeeded) (failed)
scrrun 5.6.0.6626 5.6.0.6626 5.6.0.6626
msvcrt 6.1.9844.0 6.1.9844.0 7.0.2600.1106
msxml3 8.30.9926.0 8.30.9926.0 8.30.9926.0
winhttp 5.1.2600.1327 5.1.2600.1327 5.1.2600.1108
The log says that the problem is winhttp.dll. This may or
may not be the issue. The only difference I can see is
that the version number is different on the client machine
where it failed. Then again, the msvcrt also has a
different version number, albeit a later one.

Could the problem be the version number? Or is it
something else. No one seems to have an answer to this
and I am hoping someone on this board has some brilliant
insight.

Thanks.


Nov 16 '05 #1
1 2694
I figured out the problem and I am posting it here so
others who have this issue can benefit.

What is happening is when I install the ActiveX control,
the installer checks the version of some of the system
files (such as winhttp.dll, msxml3.dll) that I included in
the packaging (Packaging and Deployment Wizard) against
what is on the client. If the client has earlier
versions, the installer tries to install the newer
version. The problem is winhttp.dll (for example) is in
use. Consequently, the installer encounters an error when
it tries to replace it and fails. (I can't believe
Microsoft doesn't handle this exception in the code!!)

The solution is to decide whether these system files are
actually required for the ActiveX control when it is
packaged. If not, remove them from the CAB file and that
will solve the problem.

-----Original Message-----
I am having an issue deploying an ActiveX control. This
is a .NET project in C#. The ActiveX control is written
in VB6. I use the PDW (Package and Deployment Wizard) to
create a .CAB for the control.

The problem is that sometimes the ActiveX control installssuccessfully and sometimes it doesn't. We have various
test machines running different operating systems. On onemachine, running Windows 2000, SP4, the control installs
successfully. On another running Windows XP Professional,SP1, the control does not install. It also fails on othermachines (like the customer's machine) but I do not have alist of operating systems or other stats on those machines.
The error message I get is this:

*** Code Download Log entry (09 Nov 2004 @ 11:04:57) ***
Code Download Error: (hr = 800c0300) Unknown Error!!
Operation failed. Detailed Information:
CodeBase:http://kwmqasite2/ocx/KwmActiveXControls.CAB
CLSID: {24959835-9D2A-40AA-B6B2-9BA0905D47F0}
Extension:
Type:

LOG: Item KwmActiveXControls.ocx being processed.
--- Detailed Error Log Follows ---
LOG: Download OnStopBinding called (hrStatus = 0 /
hrResponseHdr = 0).
LOG: Item KwmActiveXControls.ocx being processed.
LOG: Item KSPBCO.dll being processed.
LOG: Item scrrun.dll being processed.
LOG: Item msvcrt.dll being processed.
LOG: Item msxml3.dll being processed.
LOG: Item KSCTL.dll being processed.
LOG: Item winhttp.dll being processed.
ERR: INF Processing: Failed (800c0300) processing:
winhttp.dll. Cannot get primary/default language!LOG: URL
Download Complete: hrStatus:0, hrOSB:800c0300,
hrResponseHdr:0,
URL:(http://kwmqasite2/ocx/KwmActiveXControls.CAB)
LOG: Reporting Code Download Completion: (hr:800c0300
(FAILED), CLASSID: 24959835..., szCODE:
(http://kwmqasite2/ocx/KwmActiveXControls.CAB),
MainType:(null), MainExt:(null))

Researching this on Google does not reveal a heck of a
lot. This issue seems to be common and no one has
discovered the underlying cause or a solution.

Grasping at straws, I put together a table of the dlls in
the log and the versions.

DLL .cab file Windows 2000 Windows XP
(succeeded) (failed)
scrrun 5.6.0.6626 5.6.0.6626 5.6.0.6626
msvcrt 6.1.9844.0 6.1.9844.0 7.0.2600.1106
msxml3 8.30.9926.0 8.30.9926.0 8.30.9926.0
winhttp 5.1.2600.1327 5.1.2600.1327 5.1.2600.1108

The log says that the problem is winhttp.dll. This may ormay not be the issue. The only difference I can see is
that the version number is different on the client machinewhere it failed. Then again, the msvcrt also has a
different version number, albeit a later one.

Could the problem be the version number? Or is it
something else. No one seems to have an answer to this
and I am hoping someone on this board has some brilliant
insight.

Thanks.


.

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Vishwanathan Raman | last post by:
I am trying to deploy my Smart Client (it accesses a Web Service) on to a server.It works fine in my machine and also works when others access it from my machine But when deployed to another server...
5
by: aladdinm1 | last post by:
Hi All, I have an annoying trouble with binary serialization. I have a windows forms application which works like a server and keeps sending data to its clients. The data is serialized before...
2
by: Steve | last post by:
I am having an issue deploying an ActiveX control. This is a .NET project in C#. The ActiveX control is written in VB6. I use the PDW (Package and Deployment Wizard) to create a .CAB for the...
0
by: Michael | last post by:
After a week of beating my head against a wall I still continue to receive the following error message when trying to deploy a package using the cabinet option. The same error occurs with a...
4
by: fniles | last post by:
I have an ActiveX control in my web page that I tried to access using intranet. I have implemented IObjectSafety in the ActiveX control, and when I created the CAB file using VB Pakage and...
4
by: | last post by:
Hi, I'm porting a Web site from 32 bit IIS 6 to x64 IIS 6 (Windows Server 2003 x64 R2) and I'm having trouble using an ActiveX object inside an ASP page (old ASP, not ASP.NET). The CreateObject...
0
by: Kostya | last post by:
Hello. We need to use UserControl-derived components written in C# in our existing MFC application. The components need to be inserted into existing ActiveX controls (written using MFC and ATL...
0
by: ananth | last post by:
Hi All, How to create a Package and deployment wizard to create CAB files for Activex control in Visual Basic 2005. Please suggest me any links that gives a step by step procedure and...
2
by: =?Utf-8?B?Sm9obiBC?= | last post by:
A windows forms 2.0 ClickOnce deployment fails when both SSL is enabled and "require client certificate" enabled on the IIS deployment web server. Can anyone assist with how to configure this...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.