FTP Receive data failed

I am having trouble with Aspose.Network 4.7.2.4. I know this is an older file, but it is the latest version that my current license allows me to download.

I am simply trying to download files from an FTP server. When the ftp client tries to download a file it errors with the "Receive data failed" message. I have not been able to find any information on this message. I have implemented an ftp client successfully before using 4.7.1, so I am not sure what is going on.

My code is as follows.

Dim WithEvents _ftp As aFtp.FtpClient

Dim license As New Aspose.Network.License
license.SetLicense("Aspose.Total.lic")

_ftp = New Aspose.Network.Ftp.FtpClient("myserver", "login", "password")
_ftp.Connect(True)
_ftp.ResetTransferType(Aspose.Network.Ftp.TransferType.Binary)
_ftp.Download(remotePath, localPath)
_ftp.Disconnect()

The error occurs on the line "_ftp.Download(...)". The odd thing is, the file is actually download, but the exception still occurs.

If I use "_ftp.BeginDownload(...)" instead, I don't get the error, but every file downloaded is zero length.

What is going on?

Thanks!

Dan

Hi Dan,


I am sorry I could not reproduce this at my end using both the latest version of Aspose.Network for .NET v5.4 and 4.7.2.4. Tried with a local ftp server and also with a remote ftp, but files were downloaded successfully without any exception.