.NET console application in Task Scheduler

Advertisement

loncic
Joined:
Posts:
1

.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:
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.
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.

Reply with quote

Advertisement

hareem.mughis@...
Guest

App not running

I have created a console app which is running the WinSCP to transfer the data. When I run it manually it works fine data get transfer. But when I setup the a schedule for my application in the task scheduler, it run successfully but the data doesn't get transfer. The WinSCP version I am using is 5.19.5

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,034
Location:
Prague, Czechia

Re: App not running

@hareem.mughis: This does not seem to be related to the issue this thread is about. Please start your own and attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, set Session.SessionLogPath. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

Advertisement

You can post new topics in this forum