您可能曾经遇到过,当您尝试打开应用程序时,它无法打开,而是抛出错误消息The application was unable to start correct (0xc0000142)(The application was unable to start correctly (0xc0000142))。如果您收到此错误,那么您可能会对这篇文章感兴趣。
今天,我们重点关注打开命令提示符(Command Prompt)时出现的这个错误。命令提示符(Command Prompt)通常是在Windows 10上修复不同类型错误时的常量之一。但是,如果相同的命令提示符(Command Prompt)遇到相同的错误怎么办?修复这些类型的错误变得非常困难。但这并非不可能。有许多因素是导致这类错误的原因。一些第三方程序、恶意软件和其他因素属于此类别。我们将尝试所有可能的修复以修复此错误。
错误读取-
The application was unable to start correctly (0xc0000142). Click OK to close the application.
用户别无选择,只能单击标记为“确定”的按钮。
微软说,
There are primarily 3 actions that can cause this error:
- Launching lots of applications
- Launching an application as a different user
- Launching an application to a different desktop
If you are wondering what the error 0xc0000142 means in the above Message Box, you can find the error in ntstatus.h. It is STATUS_DLL_INIT_FAILED or “{DLL Initialization Failed} Initialization of the dynamic link library %hs failed. The process is terminating abnormally.”
应用程序无法正确启动 (0xc0000142)
我们将尝试以下可能的修复,以尝试修复Windows 10上命令提示符(Command Prompt)的错误 0xc0000142 :
- 重新注册所有 DLL 文件
- 运行 SFC 和 DISM
- 在干净启动状态下进行故障排除。
- 修复注册表项。
- 检查组策略设置。
我建议您创建一个系统还原点。这是因为在进行这些类型的修改时,计算机的软件端可能会出现问题。或者,如果您没有创建系统还原点的习惯,我会鼓励您经常创建一个。
1]重新注册所有的DLL文件
首先(First),首先通过 在Cortana 搜索框中搜索(Cortana Search Box)CMD打开具有(CMD)管理员(Administrator)权限的命令提示符(Command Prompt)窗口。然后右键单击相应的条目并单击 Run as Administrator 。
然后输入以下内容并按 Enter:
for %1 in (*.dll) do regsvr32 /s %1
这将重新注册所有 DLL 文件。
您应该在启动到Windows 10后立即执行此操作,或者在启动到安全模式后执行此操作。(booting into Safe Mode.)
完成后, 重新启动 (Reboot )计算机并检查错误现在是否已修复。
2]运行SFC和DISM
下载Ultimate Windows Tweaker并通过单击按钮使用它来运行系统文件检查器和DISM 。这将检查操作系统是否存在潜在的文件损坏,并分别修复系统映像。
3]在干净启动状态下进行故障排除
在干净启动状态(Clean Boot State)下进行故障排除总是有可能修复许多与系统(System)相关的错误。您可以在我们的如何执行干净启动指南中阅读更多相关信息。(Perform a Clean Boot.)
4]检查注册表设置
点击WINKEY + R按钮组合以启动运行(Run)实用程序,输入 regedit 并按 Enter。对于您获得的UAC或用户帐户控制提示(User Account Control Prompt),单击 是 (Yes )。
注册表编辑器(Registry Editor)打开后,导航到以下关键位置 -
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
现在从右侧面板中删除程序段。这些段包括DWORD 值(DWORD Values)和由冲突程序在注册表编辑器(Registry Editor)内的上述位置创建的其他条目。
您可能还需要检查以下键:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion \Windows\LoadAppInit_DLLs
将LoadAppInit_DLLs(LoadAppInit_DLLs)的值从 1 更改为 0。
完成删除后,关闭注册表编辑器(Registry Editor)并重新启动 (Reboot )计算机以使更改生效。
修复:(Fix:) Office 应用程序错误 0xc0000142。
5]检查组策略设置
打开运行框,输入gpedit.msc并按Enter打开本地组策略编辑器(Local Group Policy Editor)。导航(Navigate)到以下路径:
User Configuration/Administrative Templates/System
在右侧窗格中,您将看到阻止访问命令提示符(Prevent access to the command prompt)。双击(Double)它来设置策略。选择启用(Select Enabled)并单击Apply/OK。
This policy setting prevents users from running the interactive command prompt, Cmd.exe. This policy setting also determines whether batch files (.cmd and .bat) can run on the computer. If you enable this policy setting and the user tries to open a command window, the system displays a message explaining that a setting prevents the action. If you disable this policy setting or do not configure it, users can run Cmd.exe and batch files normally.
如果您的Windows版本没有此组策略(Group Policy)条目,您可以跳过此修复。此修复程序肯定不会在Windows 10 家庭(Home)计算机上运行,因为它没有组策略编辑器(Group Policy Editor)。
希望这篇文章对你有所帮助。高级(Advanced)用户可能想阅读MSDN上的这篇文章。
其他类似的应用程序无法正确启动(The application was unable to start correctly)错误:(Other similar The application was unable to start correctly errors:)
The application was unable to start correctly (0xc0000142) in Windows
Υou may have come across a moment, when you tried tо open an аpplication, аnd it failed to oрen, throwing up instead an error mеssage The application was unable to start correctly (0xc0000142). If you receive this error, then this post may interest you.
Today, we are focussing on this error when opening the Command Prompt. The Command Prompt is usually one of the constant while fixing different types of errors on Windows 10. But what if the same Command Prompt encounters the same error? It becomes really difficult to fix these kinds of errors. But it is not impossible to do so. There are a number of factors that are causes to these kinds of errors. Some third-party programs, malware, and other factors come under this category. We will try every potential fix in order to fix this error.
The error reads-
The application was unable to start correctly (0xc0000142). Click OK to close the application.
And the user has no other option than to click on the button labeled as OK.
Says Microsoft,
There are primarily 3 actions that can cause this error:
- Launching lots of applications
- Launching an application as a different user
- Launching an application to a different desktop
If you are wondering what the error 0xc0000142 means in the above Message Box, you can find the error in ntstatus.h. It is STATUS_DLL_INIT_FAILED or “{DLL Initialization Failed} Initialization of the dynamic link library %hs failed. The process is terminating abnormally.”
The application was unable to start correctly (0xc0000142)
We will be trying the following potential fixes to try fixing error 0xc0000142 for the Command Prompt on Windows 10:
- Re-register ALL the DLL files
- Run SFC and DISM
- Troubleshoot in Clean Boot State.
- Fix the Registry Entry.
- Check Group Policy setting.
I recommended you create a System Restore Point. This is because while doing these types of modifications, there are chances that something breaks on the software side of your computer. Or, if you do not have any habit to make a system restore point, I would encourage you to create one frequently.
1] Re-register ALL the DLL files
First of all, start by opening a Command Prompt window with Administrator privileges by searching for CMD in Cortana Search Box. Then right clicking on the appropriate entry and clicking on Run as Administrator.
Then type in the following and hit Enter:
for %1 in (*.dll) do regsvr32 /s %1
This will re-register ALL the DLL files.
You should be doing this as soon as you boot into Windows 10 or do it after booting into Safe Mode.
After you are done, Reboot your computer and check if the error is now fixed or not.
2] Run SFC and DISM
Download Ultimate Windows Tweaker and use it to Run System File Checker and DISM with the click of a button. This will check the OS for potential file corruptions, and repair the system image, respectively.
3] Troubleshoot in Clean Boot State
Troubleshooting in Clean Boot State always holds the potential to fix a lot of errors related to the System. You can read more about this in our guide on how to Perform a Clean Boot.
4] Check Registry setting
Hit the WINKEY + R button combination to launch the Run utility, type in regedit and hit Enter. Click on Yes for the UAC or User Account Control Prompt that you get.
Once Registry Editor opens, navigate to the following key location-
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
Now delete the segments of the programs from the right side panel. These segments include the DWORD Values and other entries made by the conflicting program in the mentioned location inside of the Registry Editor.
You may want to also check the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion \Windows\LoadAppInit_DLLs
Change value of LoadAppInit_DLLs from 1 to 0.
After you are done deleting, close the Registry Editor and Reboot your computer for the changes to take effect.
Fix: Office application error 0xc0000142.
5] Check Group Policy setting
Open Run box, type gpedit.msc and hit Enter to open the Local Group Policy Editor. Navigate to the following path:
User Configuration/Administrative Templates/System
In the right side pane, you will see Prevent access to the command prompt. Double click on it to set the policy. Select Enabled and click Apply/OK.
This policy setting prevents users from running the interactive command prompt, Cmd.exe. This policy setting also determines whether batch files (.cmd and .bat) can run on the computer. If you enable this policy setting and the user tries to open a command window, the system displays a message explaining that a setting prevents the action. If you disable this policy setting or do not configure it, users can run Cmd.exe and batch files normally.
If your version of Windows does not have this Group Policy entry, you can skip this fix. This fix will surely not work on Windows 10 Home machines because it does not have the Group Policy Editor.
Hope this post helps you. Advanced users may want to read this post on MSDN.
Other similar The application was unable to start correctly errors:
- The application failed to initialize properly (0xc0000135)
- The application failed to initialize properly 0xc0000005
- The application was unable to start correctly (0xc0000022)
- The application was unable to start correctly (0xc0000018)
- The application was unable to start correctly (0xc0000017)
- The application was unable to start correctly (0xc00007b).