We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

FTP Receive data failed

I am having trouble with Aspose.Network 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

_ftp = New Aspose.Network.Ftp.FtpClient("myserver", "login", "password")
_ftp.Download(remotePath, localPath)

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?



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 Tried with a local ftp server and also with a remote ftp, but files were downloaded successfully without any exception.