Connected event never gets fired - WeOnlyDo Discussion board

Connected event never gets fired (wodSFTP / wodSFTP.NET / wodSFTPdll)

by Kiril Malakhov, Saturday, June 02, 2018, 20:54 (2093 days ago)

Hello, I was using wodSFTP component for several years and it worked fine. Now we switched to Windows 16 server and I've rewritten the VB6 code in VB17. Everything seems to be in order, but Connected event never gets fired after Connect method is used. I'm not getting any errors, it's just stuck and doing nothing. Are there any tricks related to Win 16 or VB17? Could you please take a look at my code below and tell me what's wrong with it?

Dim fsoObj As Object, objFolder As Object, objFile As Object, objStream As Object
Dim connMy As ADODB.Connection, rsMy As ADODB.Recordset, connAS400 As ADODB.Connection, rs400 As ADODB.Recordset
Dim strSQL As String

Dim sftpMy As New wodSFTPCOMLib.wodSFTPCom

Private Sub frmMy_Load(sender As Object, e As EventArgs) Handles MyBase.Load

With sftpMy
.LicenseKey = "xxx"
.Hostname = ""
.Authentication = wodSFTPCOMLib.AuthenticationsEnum.authPassword
.Login = "zzzzzzzzz"
.Password = "pppppp"
.Port = 22
.Resume = True
.Blocking = True
End With

NowState = States.Connecting

End Sub

Private Sub sftpMy_Connected(ByVal ErrorCode As Integer, ByVal ErrorText As String)

If ErrorCode <> 0 Then
AddList("Connect Failed " & ErrorText)
Exit Sub
End If


NowState = States.Downloading

End Sub

Complete thread: