Fix: Error 0xc000012f and 0xc0000020 Bad Image on Windows 11 or 10

You may encounter a Bad Image error when running some games and programs like Chrome or Office on Windows 11 and Windows 10. The issue explains that “The program (program path) is not designed to run on Windows or it contains an error” and points to the error code 0xc000012f or 0xc0000020.

Bad Image on Windows 11 or 10

Bad Image means that the executable file of the program or one of the auxiliary modules is damaged. If you look at the error logs, you will find that the error code 0xc000012f refers to STATUS_INVALID_IMAGE_NOT_MZ. This means that the versions or bitness of DLLs can be confused. For example, you only have Microsoft Visual C ++ Redistributable 2012 installed, and you need Microsoft Visual C ++ Redistributable 2015, or you installed Visual C ++ Redistributable 32-bit for 64-bit Windows 11 or 10, and you need to install Visual C ++ Redistributable 64-bit as well.

The saddest thing about this error is that the culprit can be different components like damage to system files pointing to the atiglpxx.dll and atiuxpag.dll libraries, which are related to the video card drivers, Framework or DirectX. Let’s take a look at how to fix Bad Image error 0xc000012f or 0xc0000020 in Windows 11/10.

Error 0xc000012f and 0xc0000020

6 Ways to Fix Error 0xc000012f and 0xc0000020 on Windows 11/10

1. Checking and restoring system files

Run Command Prompt as administrator and enter two commands in turn:

sfc /scannow
DISM /ONLINE /CLEANUP-IMAGE /RESTOREHEALTH

2. Microsoft Visual C ++ Redistributable

If the error message contains filenames like msvcr or msvcp , then the problem is in the Visual C ++ Redistributable. In this case, you simply do not have it installed, it is not installed correctly, or the bit depth is mixed up. For example, my error pointed to the msvcr110.dll file and it was missing from the system. If you look at the properties of this file on another PC, you will find that it is a component of Visual C ++ Redistributable 2012 that you need to download and install.

To get started, open “uninstall programs” by pressing Win + R and entering appwiz.cpl or go through the control panel. Check out your versions of Visual C ++ Redistributable, which should be installed in two bits (x86) and (x64). Also, select the Visual C ++ Redistributable by clicking the mouse and click ” Change ” on top, then click on Repair in a new window to restore the default component and fix installer errors. If you don’t know which one, then do the correction with everyone.

Note: If the error points to another program like Office, then try to repair through the installer. Edit> Repair.

If they are, in principle, absent or there is not enough bit depth, then they need to be downloaded from the official Microsoft website. Before installing a new version, remove the old ones, if any.

  • Download Visual C ++ 2015
  • Download Visual C ++ 2012
  • Download Visual C ++ 2010

Important: Please note before downloading. You have to download two versions x64 and x86 and install them.

3. Remove the update patch

Specifically, Bad Image error code 0xc000012f is known due to an issue with the Cumulative Security Update for IE 10 on Windows 8 x64 (KB2936068). In other cases, if you encounter an error after updating Windows 11/10, then you need to remove this patch.

Go to Settings > Updates and Security > right side Windows Update > View Update History> Uninstall Updates . In a new window, “determine by the date” the patch after which the error began to be displayed, and delete it.

4. Video card driver

If the error message contains the atiglpxx.dll and atiuxpag.dll files, it is related to the video card drivers. You need to completely and correctly remove them and download them again. Please refer to the guide below for the correct removal of the video driver.

5. Cleaning up unnecessary files

Windows can become clogged with unnecessary and leftover files that can interfere with your system, games, and programs. Press Win + R and type cleanmgr to run Disk Cleanup. Below is a complete guide to cleaning up unnecessary files from your disk:

6. NET Framework

If the message indicates .NET Framework, then you need to download this component from the official Microsoft website and install it. Before that, delete the old one, if it is in the “uninstall programs”. If you are running a very old game or program on Windows 11/10, then you need to enable .NET Framework versions 2.0 and 3.5 in the system itself.

Leave a Reply