Page 1 of 1
Error retrieving ExitCode value
Posted: Mon Feb 13, 2012 9:28 am
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 18.104.22.168. Any help would be much appreciated.
Thanks in advance.
Posted: Tue Feb 14, 2012 8:43 am
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
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.
Posted: Wed Feb 22, 2012 6:55 am
Any update on this please?
Posted: Wed Feb 22, 2012 5:53 pm
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
I got the 'Access is denied' message in Windows XP SP3.
Posted: Thu Mar 22, 2012 9:32 am
Were you able to reproduce the error?