My code have exception on deleting remote file after downloading the file successful. However, the file in FTP server have been deleted successful, even the last reply code also shown the success transfer. Can anyone help? Thanks.
I found a strange things is that when my app download the remote file using
myFTP.Get(Stream destStream, string remoteFile)
myFTP.Delete(FTPFile.Name)
then the error occured.
however
it won't have this exception when downloading the file using
myFTP.Get(string localPath, string remoteFile)
myFTP.Delete(FTPFile.Name)
Below is the error log from my apps.
EnterpriseDT.Net.Ftp.FTPException: Transfer complete. 239 bytes transferred. 239 Bps.
at EnterpriseDT.Net.Ftp.FTPControlSocket.ValidateReply(FTPReply reply, String[] expectedReplyCodes)
at EnterpriseDT.Net.Ftp.FTPClient.Delete(String remoteFile)
at FTPEzyPost.InFTPTWPO.GetFTPFiles(FTPClient myFTP, FTPFile[] myFTPWorkingFiles, String[]& CARDITFileList, String workingDir)