Problems using Visual Basic 2005 Express - WeOnlyDo Discussion board

Problems using Visual Basic 2005 Express (General questions)

by Jondale, Thursday, May 11, 2006, 18:11 (6770 days ago)

I am having problems implementing SSHTunnel with Visual Basic 2005 Express.

I add the wodSSHTunnel ActiveX control to the project and use it successfully on the host machine.
I build the program and this creates 3 necessary files for the program:
sishome.exe (the name of my program)
Interop.wodSSHTunnelLib.dll
AxInterop.wodSSHTunnelLib.dll


As long as I have these 3 files in a folder/directory I can run the program fine on the machine it was developed...
However, when I try to copy the 3 files to a test machine and run the program the demo nag screen comes up and when it goes away I get an error such as the following:

EventType : clr20r3 P1 : sishome2.exe P2 : 1.0.0.0 P3 : 44635205
P4 : sishome2 P5 : 1.0.0.0 P6 : 44635205 P7 : e P8 : e9
P9 : system.invalidoperationexception


I thought maybe if I copied wodTunnel.ocx to the machine and registered it with regsvr32.exe that it would fix things but it seems to have changed nothing. I tried copying wodTunnel.dll and registering it and then wodTunnel.exe and then registering it via wodTunnel.exe /RegServer but that didn't affect anything either. The error still shows up everytime I try to run the program.

I haven't had this problem before on any other programs or active x controls before... Is there something more I need to do or perhaps something I am doing wrong? I am using only password authentication with the control.

This product is exactly what I need and I will gladly purchase it if I can manage to get it working in this program.

Thank you in advance for any help.

Re: Problems using Visual Basic 2005 Express

by wodDrazen, Thursday, May 11, 2006, 19:51 (6770 days ago) @ Jondale

Hi Jondale,


I tested and it works for me.
I used sample 1. Simple under Samples\VB\ActiveX folder which comes with wodSSHTunnel ActiveX component and open it in Visual Basic 2005 Express (Visual Basic 2005 Express convert and open that sample).
After that I open Bin folder of that new created project copy files as you mention ( Project1.exe, Interop.wodSSHTunnelLib.dll,AxInterop.wodSSHTunnelLib.dll) to new machine and copy also wodTunnel.ocx to Windows System32 folder and register component with RegSvr32.EXE (run command prompt and type regsvr32 wodTunnel.ocx ) and it work like a charm.

In which environment did you try it? I tested with Windows XP SP2.

Hope I helped.


Regards,
Drazen

Re: Problems using Visual Basic 2005 Express

by wodDrazen, Thursday, May 11, 2006, 21:18 (6770 days ago) @ wodDrazen

Jondale,

I didn't mention that you cannot distribute DEMO version, you can only use it when it was installed through our setup package.
If you wish, you can install it on another machine using our setup file, and then try your EXE.

Licensed version, of course, doesn't have this limitation, this is only in DEMO version.

Drazen

Re: Problems using Visual Basic 2005 Express

by Jondale, Friday, May 12, 2006, 18:56 (6769 days ago) @ wodDrazen

It appears the issue was trying to distribute the demo ocx.
I downloaded the package from your site and installed on the test machine and the program works fine.

I will be purchasing this hopefully Monday given I can get through the red tape at work by then.

Thanks for your help.