WinSCP.SessionRemoteException: Timeout waiting for external

Advertisement

dem60497
Guest

WinSCP.SessionRemoteException: Timeout waiting for external

I have written a small console application, using the WinSCP .NET library, that downloads files from an SFTP site, unzips them, and uploads the unzipped files to another FTP site. Some of these files are sizable, ranging up to 2.5 GB uncompressed (obviously, it would be more efficient to send the files and then decompress them, but this is not an option, as I have no access to the box they're going to).

I have successfully tested the application excluding the largest file, but when I include the largest file, my application throws the following error:

ERROR02:52:54  Exception in ftpOperation(): 
 WinSCP.SessionRemoteException: Error transferring file 'E:\FTPRoot\TestApp\Unzipped\g0067905\g0067905.inf'. ---> WinSCP.SessionRemoteException: Timeout waiting for external console to complete the command.
   --- End of inner exception stack trace ---
   at WinSCP.OperationResultBase.Check()
   at TestApp.Module1.ftpOperation(String operationType)    

I have read about the error, but I'm unsure how to solve it. From what I understand, winscp.com is feeding its output into a stream, causing my application to eventually hang when it doesn't receive input for quite some time.

Here is my class, if it helps at all: <invalid hyperlink removed by admin>

Thanks for your help!

Reply with quote

dem60497
Guest

Additional Info: I re-ran the process this morning and it completed successfully, even with the large file. Perhaps the issue was network-related and unrelated to the large file that I included on the first failed run?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

dem60497 wrote:

Additional Info: I re-ran the process this morning and it completed successfully, even with the large file. Perhaps the issue was network-related and unrelated to the large file that I included on the first failed run?
Let us know if you are ever able to reproduce the problem.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum