VB.NET sample ? (General questions)
Does anyone can send me a VB.NET Sample ?
Thanks a lot !
Bertrand
Does anyone can send me a VB.NET Sample ?
Thanks a lot !
Bertrand
by Bertrand DEMARCQ , (6331 days ago) @ Bertrand DEMARCQ
I tryed this but it doesn't connect, I don't get the Ssh1_Connected1()
Any help ?
Public Class Form1
Public WithEvents Ssh1 As wodSSHTunnelLib.wodTunnel
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim ssh1 As New wodSSHTunnelLib.wodTunnel
ssh1.Hostname = XXXXX.XXXXX.XXXXX
Ssh1.Login = XXXXXXXXXX
ssh1.Password = XXXXX
ssh1.Timeout = 60
ssh1.Connect()
End Sub
Private Sub SSH1_ChannelStart(ByVal Chan As wodSSHTunnelLib.IChannel)
MsgBox( go! )
End Sub
Private Sub Ssh1_Connected1() Handles Ssh1.Connected
MsgBox( Connected )
End Sub
End Class
by Jasmine, (6331 days ago) @ Bertrand DEMARCQ
Bertrand,
problem is that you initialize component twice - and 2nd instance is defined locally, and destroyed when funcion Form1_Load exits.
So, in Form1_Load change
Dim Ssh1 as new ....
to
Set Ssh1 = new ....
and that should do the trick.
Hope I helped.
Kreso
by Bertrand DEMARCQ , (6331 days ago) @ Jasmine
Many thanks !
It's works now...
Have to understand how to publish to dll
by wodDamir , (6331 days ago) @ Bertrand DEMARCQ
Bertrand,
what exactly do you mean by publish to dll?
If by that you mean distributing of the component, that's not possible for Demo version. Demo version cannot be distributed on a machine that the component wasn't installed on using our installer. This ofcourse isn't the case in our Full (licensed) version.
Regards,
Damba
by Bertrand DEMARCQ , (6331 days ago) @ wodDamir
I buyed the full version this afternoon but the component don't work when I do not install your setup...
Thanks for help
by wodDamir , (6331 days ago) @ Bertrand DEMARCQ
Bertrand,
Did you uninstall demo version and install the Full version (it asks for LicenseKey during the installation process)? Also, after that, you should re-import the component into the project.
If you are using the COM (.dll) of the component you should set LicenseKey property before calling the Connect method.
Regards,
Damba
by Bertrand DEMARCQ , (6331 days ago) @ wodDamir
Did you uninstall demo version and install the Full version (it asks for LicenseKey during the installation process)? Also, after that, you should re-import the component into the project.
Yes !
If you are using the COM (.dll) of the component you should set LicenseKey property before calling the Connect method.
No !
But it doesn't work...
Ssh1.LicenceKey = XXXX-XXXX-XXXX-XXX
with Dim WithEvents Ssh1 As New wodSSHTunnelLib.wodTunnel
Sorry to be stupid [:smile:]
by wodDamir , (6331 days ago) @ Bertrand DEMARCQ
Bertrand,
Please try something like this:
Ssh1.LicenseKey = .....
Ssh1.Connect()
Also, you need to register wodSSHTunnel.dll using RegSvr32. Can you try that?
Regards,
Damba
by demarcq , (6331 days ago) @ wodDamir
Ssh1.LicenseKey = .....
That's what I do but I get the following error :
public member 'LicenceKey' not found
Also, you need to register wodSSHTunnel.dll using RegSvr32. Can you try >that?
I'll try that...
by wodDamir , (6331 days ago) @ demarcq
Bertrand,
The error you see is because you are still using Demo version. The Demo doesn't have LicenseKey property, and that is what is causing the problem.
When you installed the full version, did it ask you to enter license key during the installation?
Can you check what does your Version property return?
Regards,
Damba
by demarcq , (6331 days ago) @ wodDamir
Yes, I have been askeen a license key during the installation.
The version return the bleu form and I get License key and the note : Licensed version of the component. Roality free
by wodDamir , (6331 days ago) @ demarcq
Bertrand,
When distributing the component what exactly do you do? Do you just copy the files from the bin folder of your project?
You need to distribute the wodTunnel.dll or wodTunnel.ocx (depending on the version of the component you are using) and register them on the distribution machine.
Regards,
Damba
by demarcq , (6331 days ago) @ wodDamir
When distributing the component what exactly do you do? Do you just copy the files from the bin folder of your project?
Yes !
You need to distribute the wodTunnel.dll or wodTunnel.ocx (depending on the version of the component you are using) and register them on the distribution machine.
Ok, understand ! thanks !
I also use a FTPSSH component and I use the LicenseKey property. I can't use it with ssh tunnel so can't distribute it... ;-(
However, thanks a lot for your help !
by wodDamir , (6331 days ago) @ demarcq
Bertrand,
The things I suggested simply have to work. The files that VB.Net creates in bin folder aren't enough for the component to work on other machines. That's why it's required to distribute the .dll or .ocx files, and registering them on the distribution machine.
I would also suggest that you uninstall the component, delete bin and obj folders from your project folders, then install component, re-import the reference to the component and re-build the project.
Then on distribution machine, just run RegSvr32 on the component file.
Can you please try those things?
Regards,
Damba
I can only hope I will have the pleasure to work with other products by "We Only Do" in the future.
We have recently completed a large 1200+ location project where reliable Telnet and SSH connectivity was required. wodSSH worked flawlessly and allowed our staff to complete our project ontime and within budget.
The SFTP ocx is one of the finest pieces of programming I have seen. It worked out of the box...
Congratulations on an excellent product and first rate support!
You did a great job on wodSSH and wodSSHServer! I got a lot for very little money. Thanks!
Your .NET components allow us to blend .NET technology seamlessly with secure communication, and with excellent technical support.
Thanks! We love your software and your great support!
Your customer service was excellent, and I will look at your products in the future for precisely that reason.
...with a minimum of effort as the DLL interface was written with such simplicity...
The SFTP ocx is one of the finest pieces of programming I have seen. It worked out of the box...