.NET console application in Task Scheduler
I have .NET console application which use WinSCP .NET assembly. I created task in Task Scheduler to run that application on daily basis. When starting that task manually everything works OK, every time. When I let scheduler do the the work I get error message:
If I schedule computer restart before this task run it will run without problems, but the next day (without computer restart) it will fail again. So it works only with computer restart prior the task run. I read Bug 996, but don't have on that computer WinSCP versions other than 5.19.1.Timeout waiting for WinSCP to respond - WinSCP has not responded in time. There was no output. Response log file C:\Users\aaa\AppData\Local\Temp\wscp3FC8.029531C8.tmp was not created. This could indicate lack of write permissions to the log folder or problems starting WinSCP itself.