Page 1 of 1

Error retrieving ExitCode value

Posted: Mon Feb 13, 2012 9:28 am
by yeohray
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.

Posted: Tue Feb 14, 2012 8:43 am
by isiticov
Do you get this error on any task or on some particular one? Can you reproduce this problemm in any sample project?

Posted: Tue Feb 14, 2012 9:05 am
by yeohray
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.

Posted: Wed Feb 22, 2012 6:55 am
by yeohray
Any update on this please?

Thanks.

Posted: Wed Feb 22, 2012 5:53 pm
by isiticov
When we reproduce this the ExitCode returns '80070002' HRESULT value which means "The system cannot find the file specified."
What OS version do you use?

Posted: Mon Mar 05, 2012 10:47 am
by yeohray
I got the 'Access is denied' message in Windows XP SP3.

Posted: Thu Mar 22, 2012 9:32 am
by yeohray
Were you able to reproduce the error?