WinSCP.SessionRemoteException: Network error: Software caused connection abort
Hi,
I am trying to debug the error above and I cannot figure it out even though I enabled the session log.
Context:
My app: it is a windows service that runs scheduled jobs that look for files to upload/download to/from the same SFTP server. Each job processes in sequence a list of configurations that specify a download or an upload from or to a specific remote folder. The app opens & closes a session each time it processes each configuration. I know it is not the most efficient way to do it but I had my reasons and I am not worried about performance. After processing a number of configurations, I eventually get this exception on a configuration that tries to download files:
One question that I have – is it possible to get the error because there are multiple sessions to the same server at the same time from multiple threads?
Here are the lines from the session log file during one second when the failure above occurred.
I am trying to debug the error above and I cannot figure it out even though I enabled the session log.
Context:
My app: it is a windows service that runs scheduled jobs that look for files to upload/download to/from the same SFTP server. Each job processes in sequence a list of configurations that specify a download or an upload from or to a specific remote folder. The app opens & closes a session each time it processes each configuration. I know it is not the most efficient way to do it but I had my reasons and I am not worried about performance. After processing a number of configurations, I eventually get this exception on a configuration that tries to download files:
WinSCP.SessionRemoteException: Network error: Software caused connection abort
at WinSCP.SessionLogReader.Read(LogReadFlags flags)
at WinSCP.SessionElementLogReader.Read(LogReadFlags flags)
at WinSCP.CustomLogReader.WaitForNonEmptyElement(String localName, LogReadFlags flags)
at WinSCP.CustomLogReader.WaitForGroupAndCreateLogReader()
at WinSCP.Session.WaitForGroup()
at WinSCP.Session.Open(SessionOptions sessionOptions)
- The remote server is Cerberus FTP Server 12.3.4.0. I checked its log but there is nothing out of the ordinary.
- The version of WinSCP is: 6.3.5 (Build 14991 2024-09-10).
One question that I have – is it possible to get the error because there are multiple sessions to the same server at the same time from multiple threads?
Here are the lines from the session log file during one second when the failure above occurred.