You try to launch an application in Microsoft Windows and receive the following error 0xc0000142:
"appname.exe - Application Error. The application was unable to start correctly (0xc0000142). Click OK to close the application."
This can occur with any Windows installed app, including the Citrix Workspace App (CWA) client. If this CWA client hits this error, you would receive the following error message:
This error point to either corruption of the application in question or some sort of corruption of an operating system component. Follow the steps below to resolve this error:
- Perform a clean boot in Windows to exclude the possibility of a third application or driver tampering with the operations of the app throwing the error. Details on how to perform a clean boot can be found at: https://support.microsoft.com/en-us/help/929135/how-to-perform-a-clean-boot-in-windows.
- Run appwiz.cpl to get to the list of installed programs and features of Windows and try to repair or re-install, i.e. uninstall, reboot and re-install, the affected application.
- Check your Windows profile for possible corruption and clean up by creating a new clean profile. If issue persists, you might also want to clean up the default user profile as well by copying a known healthy default profile from another machine with same operating system version.
- Run the following commands to check for possible file system or other operating system corruption.
chkdsk sfc /scannow DISM /Online /Cleanup-Image /ScanHealth