80040154. Error (General questions)
Hi
I am using registered wodSSH component on a small SSH application.
When distributing the application, using the installer/publish process in Visual basic 2005 express, I get a 80040154 error:
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {20F48DF6-40B7-4069-8FFD-0627F8F8356E} failed due to the following error: 80040154.
at SSHTest1.SSHTest1.SSHTest1_Load(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
After installing on a different PC (not the development one).
I am including the wodSSH.dll, wodKeys.dll and Interop.WODSSHCOMLib.dll files into the installation folder of the application.
I understand that the wodSSH com object is not registered on the target PC.
Any way of getting it registered automatically with the VB express installer?
Thanks!
Re: 80040154. Error
Hi Javier,
Did you try registering wodSSH.dll and wodKeys.dll on target machine using regsvr32? That should fix your problem.
Also please make sure that you are inserting your license key in wodSSH LicenseKey Property. LicenseKey Property should be placed in your wodSSH code before Connect Method.
Hope I helped.
Regards,
Drazen
Re: 80040154. Error
Hi Drazen
Thanks for your reply.
Yes, I have the license installed, in the development machine I do not see any nag screen.
using regsvr32 may solve the issue, but this would prevent easy distribution of the application.
do you know any way of doing it automatically with the included installer in VB express?
I guess other people has done this before...
Thanks!
Hi Javier,
Did you try registering wodSSH.dll and wodKeys.dll on target machine using regsvr32? That should fix your problem.Also please make sure that you are inserting your license key in wodSSH LicenseKey Property. LicenseKey Property should be placed in your wodSSH code before Connect Method.
Hope I helped.
Regards,
Drazen
[url=http://]Name[/url]
Re: 80040154. Error
Javier,
I believe that registering the component should be done if Register property for wodSSH is set to one of the available settings (in Setup project).
Can you try something like this:
- Create a solution and a project that uses the component
- Add a new setup project to the solution (select solution in solution explorer, and select Add->Project)
- under the new, Setup project, right click the project name, and select Add->Project Output and confirm. You should be prompted to check if all the dependencies were added. Click Ok.
- In Solution explorer, select wodSSH.dll and in properties check that the Register property is set.
Can you try it?
Regards,
Damba
Re: 80040154. Error
Hi
Well, that procedure is not possible on VB Express (no setup project)
I found the solution, right click on project, go to references, then on the properties for the reference to the SSH component, we need to change Isolated to true.
Now the vb installer is creating properly the references to the file, and the install on user PC works
Regards!
Javier,
I believe that registering the component should be done if Register property for wodSSH is set to one of the available settings (in Setup project).
Can you try something like this:
- Create a solution and a project that uses the component
- Add a new setup project to the solution (select solution in solution explorer, and select Add->Project)
- under the new, Setup project, right click the project name, and select Add->Project Output and confirm. You should be prompted to check if all the dependencies were added. Click Ok.
- In Solution explorer, select wodSSH.dll and in properties check that the Register property is set.Can you try it?
Regards,
Damba