System.TimeoutException Opening Session
I have a powershell script that calls several .NET programs that SFTP files. The script runs every hour and runs days without any problems. However, once in a while, it programs get a System.TimeoutException when performing the Session.Open(). The issue lasts about 15 minutes before correcting itself. The script is running multiple programs, some of them may fail before eventually recovering.
The script executes under the same user account each time.
WInSCP v5.9.3 .Net Assembly (NET 4.6.1)
Windows 2008 R2
Actual Exception:
System.TimeoutException: Timeout waiting for WinSCP to respond - WinSCP has not responded in time.There was no output. Response log file C:\Users\myserviceaccount\AppData\Local\Temp\wscp09E0.0348C725.tmp was not created. This could indicate lack of write permissions to the log folder or problems starting WinSCP itself.
at WinSCP.Session.CheckForTimeout(String additional)
at WinSCP.Session.Open(SessionOptions sessionOptions)
There is an older version of WinSCP running on the same server, however my application is running the version referenced in the NuGet package. Could there be a conflict with running multiple and/or different versions of WinSCP on the same sever?
The script executes under the same user account each time.
WInSCP v5.9.3 .Net Assembly (NET 4.6.1)
Windows 2008 R2
Actual Exception:
System.TimeoutException: Timeout waiting for WinSCP to respond - WinSCP has not responded in time.There was no output. Response log file C:\Users\myserviceaccount\AppData\Local\Temp\wscp09E0.0348C725.tmp was not created. This could indicate lack of write permissions to the log folder or problems starting WinSCP itself.
at WinSCP.Session.CheckForTimeout(String additional)
at WinSCP.Session.Open(SessionOptions sessionOptions)
There is an older version of WinSCP running on the same server, however my application is running the version referenced in the NuGet package. Could there be a conflict with running multiple and/or different versions of WinSCP on the same sever?