Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Odd ClickOnce Deployment problem -
 

Odd ClickOnce Deployment problem -

I'm deploying a Winforms (Dot Net 2.0) project via ClickOnce. The project includes a form with a AxMSChart20Lib.AxMSChart control.

The problem is this. The program is installed on 5 computers including my own. Since this is a corporate environment the computers should have relatively similar setups. However, when the form containing the chart is called, in 2 out 5 of the computers, the app crashes, with an unhandled exception box. The first line of the list is: System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

To make matters more confusing I am certain the control is being sent to the user machines (aside from checking the compile settings), because as a test, I put a routine in the main form, one line: Dim x As New AxMSChart20Lib.AxMSChart

This works in allthe PCs so I know the control is being deployed.

Suggestions?

B. Chernick  Friday, August 14, 2009 5:07 PM

It depends on the dll. Deploying it locally does not always work, and that has nothing to do with ClickOnce. Some dll's just have to be in the GAC, like the PIAs.

Have you tried putting it in the GAC to even see if that would fix the problem? That would give you more information that you can use to decide how to move forward.

RobinDotNet


Click here to visit my ClickOnce blog!
RobinDotNet  Tuesday, August 18, 2009 5:47 PM

I commented on this in the other thread where you asked about it. I recommend installing it in the GAC and registering it on the machines where you are having problems, and removing it from the deployment, and see if that fixes you problem.

RobinDotNet


Click here to visit my ClickOnce blog!
RobinDotNet  Monday, August 17, 2009 8:27 AM
Not to sound ungrateful but that's what I'm trying to avoid. Iwas hopingthat ClickOnce would remove the need for such attention to individual machines. But I'll look into it. Thanks.

Anyone else work on this problem?
B. Chernick  Tuesday, August 18, 2009 2:20 PM

It depends on the dll. Deploying it locally does not always work, and that has nothing to do with ClickOnce. Some dll's just have to be in the GAC, like the PIAs.

Have you tried putting it in the GAC to even see if that would fix the problem? That would give you more information that you can use to decide how to move forward.

RobinDotNet


Click here to visit my ClickOnce blog!
RobinDotNet  Tuesday, August 18, 2009 5:47 PM
To clarify, if you find it has to be in the GAC, you can deploy it as a prerequisite to the ClickOnce application, and install it in the GAC. So you can still use ClickOnce. But first you need to know if it's going to work or not.

RobinDotNet
Click here to visit my ClickOnce blog!
RobinDotNet  Wednesday, August 19, 2009 6:31 AM

You can use google to search for other answers

Custom Search

More Threads

• About new Setup and Deployment Project
• command line vs gui
• Setup & Deployment -- rerun custom action
• Installing files to Vista Program Data Folder
• Tutorial loader UI/Code
• need code for custom update checking...
• setup file for visual studio.net
• unable to uninstall files installed by VS
• Deployment Issue: The saved State dictionary contains inconsistent data and might have been corrupted.
• Setup Project in VisualStudio.NET(2003)