Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Additional Data: Error Value: 2147942402. How to fix?

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?

like image 510
Rick Eyre Avatar asked Aug 08 '12 13:08

Rick Eyre


2 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.

like image 126
deadlydog Avatar answered Sep 19 '22 13:09

deadlydog


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.

like image 26
Eric Avatar answered Sep 17 '22 13:09

Eric