WinSCP fails to run as a WebJob on Azure App Service
I've developed a .NET console application to run as a WebJob under Azure App Service.
This console app is using WinSCP to transfer files from App Service Filesystem to an on-prem FTP Server.
1- An Exception is being fired intermittently on ALL of our Azure environments (Dev, Test, Prod)
2- The connectivity between App Service & the on-perm FTP server is Okay.
3- Most of the time the job succeeds ,the files are synced, and log files written as well.
4- Sometimes, the job fails, no files synced, and no Log is NOT being written as well.
This console app is using WinSCP to transfer files from App Service Filesystem to an on-prem FTP Server.
1- An Exception is being fired intermittently on ALL of our Azure environments (Dev, Test, Prod)
2- The connectivity between App Service & the on-perm FTP server is Okay.
3- Most of the time the job succeeds ,the files are synced, and log files written as well.
4- Sometimes, the job fails, no files synced, and no Log is NOT being written as well.
Any clues?WinSCP process terminated with exit code -1073741819 (C0000005). There was no output. Response log file D:\local\Temp\wscp550C.03E988EE.tmp was not created. This could indicate lack of write permissions to the log folder or problems starting WinSCP itself.