Unable to connect to host using FTPSwithData and X - WeOnlyDo Discussion board

Unable to connect to host using FTPSwithData and X (wodFtpDLX / wodFtpDLX.NET)

by blitzy, Tuesday, October 26, 2010, 17:38 (5146 days ago)

Hello,

We have been using wodFtpDLX.NET v1.1.7.62 for many years now with no issue. Recently we had a server failure and had to move to a Windows Server 2008 machine.

Since then, we cannot cannot to one of our ftp hosts using FTPSwithData and the X509 certificate supplied by that host. The error returned upon Ftp.Connect is The handshake failed due to an unexpected packet format.

[code]
Dim Ftp As New WeOnlyDo.Client.FtpDLX
Dim Certificate As X509Certificates.X509Certificate2

Ftp.Protocol = Protocols.FTPSwithdata

Certificate = New X509Certificates.X509Certificate2
Certificate.Import(CertificatePath, CertificatePassword, X509KeyStorageFlags.Exportable)
Ftp.Authentication = Authentications.Certificate
Ftp.Certificate = Certificate

Ftp.Hostname = HostName
Ftp.Login = UserName
Ftp.Password = Password
Ftp.Blocking = True
Ftp.Connect()
[/code]

The code for our Windows service has not changed. This service also connects to another host and is able to upload/download files fine. It's only for the host using the certificate that we have problems. We have tried using WS_FTP on the same server to connect to this host using the certificate without any problems.

Can someone please help? Otherwise, we have to continue to upload/download files manually.


Complete thread: