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?
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With