Problems connecting Explicit over TLS

Jul 21, 2015 at 3: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 xx.xx.xx.xxx:21...
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

    Try
        Me.Client.Connect()
    Catch ex As Exception
        Stop
    End Try

End Sub

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

Thanks. Gordon