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.
- Write down or capture the full path shown in the Bad Image window.
- 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?
If an install was interrupted or an update replaced only some files, a DLL in the app folder can become an invalid image.
- In Settings → Apps → Installed apps, run ... → Modify (or Repair) for the app. For Office, run Quick Repair first, then Online Repair.
- If there is no repair option, uninstall and reinstall with a freshly downloaded installer from the official site. For games, the launcher's file check can do the same job.
What to check
If the same DLL path does not appear again, you are done. If it does, a storage error is also possible, so check the drive with chkdsk C: /scan.
Did this step fix it?
There are cases where Bad Image appears for a System32 DLL right after a Windows update. If it began after an update, roll that update back first; otherwise repair the system files.
- If the error started right after an update, remove that date's update in Settings → Windows Update → Update history → Uninstall updates and restart (View update history → Uninstall updates on Windows 10).
- If it is unrelated to an update, run
DISM /Online /Cleanup-Image /RestoreHealthfirst in Terminal (Admin), thensfc /scannowwhen it finishes.
DISM /Online /Cleanup-Image /RestoreHealthsfc /scannowWhat to check
If the same path does not appear after restarting, you are done. Watch whether the removed update reinstalls before Microsoft releases a fix. If the error continues, consider a Windows repair install after backing up.
Did this step fix it?
Frequently asked questions
Related PC FIX problems
Official references
Content reviewed: 2026-10-07