When retrieving the ExitCode property for a task, I get a 'Access is denied' message. I'm currently logged on as an administrator on the local machine, and the task is a local task.
I'm using version 2.0.7.1. Any help would be much appreciated.
Thanks in advance.
Error retrieving ExitCode value
It seems to happen only when the executable file does not exist.
E.g. if I have a task that runs dummy.exe (an empty Delphi console app), I can retrieve the exit code fine. If I now delete dummy.exe and the task runs, Windows Scheduler reports a 'Could not start' status, but Scheduling Agent will raise an 'Access is denied' error when it tries to retrieve the exit code.
Thanks.
E.g. if I have a task that runs dummy.exe (an empty Delphi console app), I can retrieve the exit code fine. If I now delete dummy.exe and the task runs, Windows Scheduler reports a 'Could not start' status, but Scheduling Agent will raise an 'Access is denied' error when it tries to retrieve the exit code.
Thanks.