windows 附加数据:错误值:2147942402。如何修复?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11865369/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Additional Data: Error Value: 2147942402. How to fix?
提问by Rick Eyre
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:
我有许多不同的调度任务,它们被设置为运行一些用 VB.Net 编写的可执行文件。当他们开始运行时,他们几乎总是收到一条错误消息,指出任务无法启动并引用此错误值:
Additional Data: Error Value: 2147942402
附加数据:错误值:2147942402
How can I fix this?
我怎样才能解决这个问题?
回答by deadlydog
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
.
我收到了同样的错误信息。正如在另一个答案中指出的那样,事实证明错误代码2147942402
实际上意味着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.
我正在以编程方式创建我的计划任务,结果我在指定要运行的可执行文件的路径中有一个拼写错误,它实际上并不存在。一旦我更正了计划任务设置为运行的 exe 的文件路径,那么一切都按预期工作。
回答by Janusz Nowak
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.
我得到了相同的附加数据:错误值:2147942402。对我来说,有效的解决方案是删除任务并创建新的任务,与被删除的任务相同。您还可以尝试在任务运行时验证用户的密码。
回答by user3476222
I had the same issue when I tried running web pages with IE using windows scheduler.
当我尝试使用 Windows 调度程序通过 IE 运行网页时,我遇到了同样的问题。
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".
- 单击“设置”选项卡,在对话框底部查找“如果任务已在运行,则应用以下规则”,并将 DropDownList 值设置为“停止现有实例”。
-Click the Actions Tab, edit your task, under Program/script choose the FULL PATHof the application running your task (In my case I replaced iexplore.exe with C:\Windows\winsxs...\iexplore.exe)
- 单击操作选项卡,编辑您的任务,在程序/脚本下选择运行任务的应用程序的完整路径(在我的情况下,我用 C:\Windows\winsxs...\iexplore.exe 替换了 iexplore.exe)
Hope this helps you :-)
希望这对你有帮助:-)
回答by Eric
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.
更改权限、不同的文件或位置对我不起作用。我必须创建一个全新的任务并禁用旧任务,它对我有用。某些东西一定已经被原始任务损坏了。