–1 vote

Error message thrown...

An unhandled exception of type 'Limilabs.FTP.Client.FtpResponseException' occurred in Ftp.dll

Additional information: Protocol mismatch.

when 'client.Login(username, password)' line is ran see code below:

    Dim username As String = "wgoftp"
    Dim password As String = "XXXXXXXXXXX"

    Using client As New Ftp()
        client.Connect("web.winnebagoind.com", 22)  ' Port 22 used for SFTP
        client.Login(username, password)
        client.ChangeFolder("/opt/cms/dealer_input")
        If client.Connected = True Then

            If File.Exists("W:\IDEAL.TXT") Then
                If client.FileExists("IDEAL.TXT") Then
                    client.DeleteFile("IDEAL.TXT")
                End If
                ' Upload the file to the current folder on the server
                client.Upload("IDEAL.TXT", "W:\IDEAL.TXT")
            End If
by (1.3k points)

1 Answer

–1 vote

Ftp.dll is for FTP and FTPS (FTP over TLS/SSL) protocols.

FTP runs on port 21, FTPS on 990. Use Connect(string host) and ConnectSSL(string host) to conenct to default ports.

by (301k points)
No joy!  Now it fails to connect before it even gets the Login information.
As I said Ftp.dll is for FTP and FTPS - SFTP is completely different protocol
In searching your site, I found an answer...  Limilabs does not support SFTP and has no plans for it in the future.  This makes this dll useless for us.  It was a bad decision to purchase.
It's a _different_ protocol, they have absolutely nothing in common!

Your purchase was over a year ago!
That is true...  It obviously still was a bad decision.
Ask your server administrator, maybe this server supports FTP/FTPS as well, and it only needs to be turned on.
...