I have a scheduled task that runs during the night and downloads a very large database bak file (around 10GB). And many nights if fails. But when I run the scheduled task (not just run the script) it works fine everytime. Does this error look more like an issue with the remote side FTP server?
WinSCP.SessionRemoteException: Error transferring file '/DatabaseBackupFile.BAK'. ---> WinSCP.SessionRemoteException: Copying files from remote side failed.
Failure writing network stream.
I really don't understand why it works manually everytime, that leads me to believe either a network hiccup or something with the remote side FTP server.