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 , (6390 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, (6390 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 , (6390 days ago) @ Jasmine
Many thanks !
It's works now...
Have to understand how to publish to dll
by wodDamir , (6390 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 , (6390 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 , (6390 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 , (6390 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 , (6390 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 , (6390 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 , (6390 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 , (6390 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 , (6390 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 , (6390 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 , (6390 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 really like these products - they are consistently first rate!
You have been great as far as offering support is concerned and has been extremely responsive to both support requests and suggestions for product enhancements.
Fantastic product by the way, it has helped us tremendously on a daily basis. Keep up the good work.
Thanks! We love your software and your great support!
I really like these products - they are consistently first rate!
You made it so simple for us to integrate SFTP - a technology we had little experience with...
...with the SFTP interface you produced, everything was so simple to understand, we were able to start coding almost immediately!
...your service has been phenomenal. It's always quick and you are there when I need you.
Just thought you'd like to know that my gateway app with your SMTP Server component held the line against a DDOS attack today...
It was no small factor, however, that your support in getting me up and running made me buy from you.