0xC000012F Bad Image Executable image error

The executable image the program is trying to load is invalid.

First, check that this guide matches your problem

When it happens

When running, the DLL name and a Bad Image message are displayed.

Common causes

  • Corrupted DLL
  • Wrong version
  • Interrupted installation

Step-by-step fixes

3 steps, 32 min–1 hr 12 min in total. The easiest checks come first, so stop as soon as the problem is fixed.

The repair method depends entirely on where the damaged DLL is. If it is in the app folder, repair the app; if it is under C:\Windows, repair Windows.

  1. Write down or capture the full path shown in the Bad Image window.
  2. If the path is an app folder such as C:\Program Files, repair the app in the next step; if it is C:\Windows\System32 or SysWOW64, repair Windows in the step after that.

What to check

Once you have the path, go to the matching step. Do not delete the DLL or copy one from another PC.

Did this step fix it?

Frequently asked questions

Related PC FIX problems

Official references

Content reviewed: 2026-10-07