I have a number of different sheduled tasks that are set to run some executable files written in VB.Net. When they go to run they almost always get an error saying that the task failed to start and references this error value:
Additional Data: Error Value: 2147942402
How can I fix this?
5 Answers
I was getting the same error message. As pointed out in this other answer, it turns out that the error code 2147942402 actually means File Not Found.
I was creating my Scheduled Task programmatically, and it turned out that I had a typo in the path of the executable that I was specifying to run, and it didn't actually exist. Once I corrected the file path of the exe that the Scheduled Task was set to run then everything worked as expected.
I had the same issue when I tried running web pages with IE using windows scheduler.
Follow these steps:
-Right click your task -> properties.
-Click the Settings tab, look for "If the task is already running, then the following rule applies", should be at the bottom of the dialog, and set the DropDownList value to "Stop the existing instance".
-Click the Actions Tab, edit your task, under Program/script choose the FULL PATH of the application running your task (In my case I replaced iexplore.exe with C:\Windows\winsxs...\iexplore.exe)
Hope this helps you :-)
I got the same Additional Data: Error Value: 2147942402. For me the solution that worked was to delete the task and create the new one, the same that was deleted. You can also try to validate the password for user on with the task is running.
Changing permissions, different files or locations didn't work for me. I had to create a brand new task and disable the old one, and it worked for me. Something must've been corrupted with the original task.
I fixed this error by changing "Run whether user is logged on or not" to "Run Only when user is logged on" on the General tab of the task.
You must a valid user on the General tab-> security options-> "When running the task, use the following user account:"