This project is read-only.

Problems connecting Explicit over TLS

Jul 21, 2015 at 4:45 PM
Hi, I can connect to the server in FileZilla. The FileZilla settings are
Protocol: FTP- File Transfer Protocol
Encryption: Requires Explicit FTP over TLS
Logon Type: Normal.

Status: Disconnected from server
Status: Connecting to
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Status: Connected
Status: Retrieving directory listing...
Status: Directory listing of "/" successful

The VB.Code below is throwing an exception "User cannot log in" What could I possibly be doing wrong?

Thank you. Gordon

Public Sub Connect2()
    Me.Client = New FtpClient()
    Me.Client.Host = FTP_HOST
    Me.Client.Port = 21
    Me.Client.Credentials = New NetworkCredential(FTP_USER, FTP_PASS)
    Me.Client.DataConnectionType = FtpDataConnectionType.AutoActive
    Me.Client.EncryptionMode = FtpEncryptionMode.Explicit
    Me.Client.DataConnectionEncryption = True
    AddHandler Me.Client.ValidateCertificate, AddressOf Client_ValidateCertificate

    Catch ex As Exception
    End Try

End Sub

Private Sub Client_ValidateCertificate(control As FtpClient, e As FtpSslValidationEventArgs)
    e.Accept = True
End Sub
Jul 28, 2015 at 6:27 PM
Hi, anyone have an idea on this?

Thanks. Gordon