I have two small programs that I wrote in C# that are basically just executing calls to cuteFTP Pro 8 (a scriptable FTP client).
Program #1: needs to connect to a remote server using standard FTP protocol. This program works fine whether I run it or schedule it through the Windows Task Scheduler (Server 2003 Standard).
Program #2: needs to connect to a remote server using FTPS_IMPLICIT or FTPS, I've tried using either of these two protocols and the same result is produced.
If I run Program #2 on my user account while logged in to the server it works correctly, however if I schedule it through Windows Task Scheduler (in exactly the same fashion as Program #1) I get the COM error that I put in the thread title. A stack
trace shows that it happens
which is one of the cuteFTP methods. For the sake of isolating the problem I removed most of the functional code in Program#1 and Program #2 so taht they are identical other than the fact that one connects to a remote server needing FTP and the other
to one needing FTPS or FTPS_IMPLICIT.
Is there anything I can do to correct this?
View Complete Post