View previous topic :: View next topic |
Author |
Message |
yeohray
Joined: 27 Jan 2012 Posts: 10
|
Posted: Mon Feb 13, 2012 9:28 am Post subject: Error retrieving ExitCode value |
|
|
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. |
|
Back to top |
|
 |
isiticov Site Admin
Joined: 21 Nov 2002 Posts: 2112
|
Posted: Tue Feb 14, 2012 8:43 am Post subject: |
|
|
Do you get this error on any task or on some particular one? Can you reproduce this problemm in any sample project? |
|
Back to top |
|
 |
yeohray
Joined: 27 Jan 2012 Posts: 10
|
Posted: Tue Feb 14, 2012 9:05 am Post subject: |
|
|
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. |
|
Back to top |
|
 |
yeohray
Joined: 27 Jan 2012 Posts: 10
|
Posted: Wed Feb 22, 2012 6:55 am Post subject: |
|
|
Any update on this please?
Thanks. |
|
Back to top |
|
 |
isiticov Site Admin
Joined: 21 Nov 2002 Posts: 2112
|
Posted: Wed Feb 22, 2012 5:53 pm Post subject: |
|
|
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? |
|
Back to top |
|
 |
yeohray
Joined: 27 Jan 2012 Posts: 10
|
Posted: Mon Mar 05, 2012 10:47 am Post subject: |
|
|
I got the 'Access is denied' message in Windows XP SP3. |
|
Back to top |
|
 |
yeohray
Joined: 27 Jan 2012 Posts: 10
|
Posted: Thu Mar 22, 2012 9:32 am Post subject: |
|
|
Were you able to reproduce the error? |
|
Back to top |
|
 |
|