Categories About Us Contact Us Become a Member

How to fix Windows error 126 (ERROR_MOD_NOT_FOUND)

This means a program tried to load a DLL or module that is missing or unreadable. Restoring the dependency fixes it. Jump to your situation below or work through the methods in order.

By Neeraj Singh ~7 min Updated Jun 2026 88% found this helpful
Error message
Error 126: ERROR_MOD_NOT_FOUND. The specified module could not be found.
Summary

Error 126 (ERROR_MOD_NOT_FOUND), the specified module could not be found, means a program or service tried to load a DLL or module that is missing, in the wrong place, or cannot be read. It usually comes from a missing dependency, very often a Visual C++ Redistributable the app relies on, a DLL that was deleted or removed by antivirus, or a registration that points at a module that no longer exists. The fix is to identify and restore the missing module: reinstall or repair the program, install or repair the Visual C++ Redistributables (and other runtimes the app needs), restore a deleted DLL, and re-register a DLL with regsvr32 where appropriate. SFC and DISM cover missing Windows DLLs. Once the required module is present and readable, error 126 clears.

What this error means

Programs are built from many modules. When one starts, Windows loads the DLLs it depends on. Error 126 means one of those required modules could not be found or loaded, so the program cannot continue.

The missing module is most often a shared runtime, the Visual C++ Redistributables are the classic example, or a DLL that was deleted, quarantined by antivirus, or left dangling by a bad install. Restoring or reinstalling that dependency, rather than the whole system, is what fixes it.

Common causes

A required Visual C++ Redistributable is missing.
A DLL the program needs was deleted or quarantined.
An incomplete or corrupt installation.
A registration points at a DLL that no longer exists.
A missing or damaged Windows system DLL.
The DLL is present but the wrong architecture or version.
Expert insight

“Error 126 is a missing-dependency error: the app reached for a DLL and it was not there. The number one cause I see is a missing Visual C++ Redistributable, so I install or repair those first and a huge share of cases just vanish. After that it is a DLL that got deleted or quarantined by antivirus, which I restore, or a stale registration I clean up. Reinstalling the app cleanly fixes the rest. It is rarely the whole of Windows, just one absent module.”

How to fix it

Method 1

Install or repair Visual C++ Redistributables

1Install the latest Microsoft Visual C++ Redistributables (both x64 and x86), which many apps depend on.
2If already installed, repair them via Settings, Installed apps.
3This resolves a large share of error 126 cases.
Method 2

Reinstall or repair the program

1Uninstall and reinstall the program cleanly, or use its Repair option.
2This replaces missing DLLs and fixes registrations.
3Restart and retry.
Method 3

Restore a deleted or quarantined DLL

1Check whether antivirus quarantined a DLL and restore it, adding an exception.
2Otherwise restore the DLL from a backup or by reinstalling the owning software.
3Confirm the DLL is back in the expected folder.
Method 4

Re-register a problem DLL

1If a specific DLL fails to load, re-register it from an elevated prompt:
regsvr32 name.dll
2Use this only for DLLs meant to be registered.
3A stale registration to a missing DLL can also be removed.
Method 5

Repair missing Windows DLLs

1For a missing system DLL, run:
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth
2These restore damaged or missing Windows modules.
3Reboot and retry.

Error 126 is a missing module, so restore the dependency rather than reinstalling Windows. Install or repair the Visual C++ Redistributables first since they fix a large share of cases, then reinstall the app, restore any DLL antivirus quarantined, and run SFC and DISM for missing system DLLs.

Frequently asked questions

What does Windows error 126 mean?
ERROR_MOD_NOT_FOUND, the specified module could not be found. A program tried to load a DLL or module that is missing, misplaced, or unreadable.
How do I fix error 126?
Install or repair the Visual C++ Redistributables, reinstall or repair the program, restore any DLL that antivirus quarantined, and run SFC and DISM for missing Windows DLLs.
Why do the Visual C++ Redistributables matter?
Many applications depend on the shared DLLs in those runtimes. If the required Visual C++ Redistributable is missing, the app cannot load it and reports error 126.
Antivirus deleted a DLL, what now?
Restore it from quarantine and add an exception so it is not removed again, or reinstall the owning software to replace the DLL, then retry the program.
When should I use regsvr32?
Only for DLLs that are meant to be registered. Re-registering with regsvr32 name.dll from an elevated prompt can fix a load failure, but it does not apply to every DLL.
Could it be a Windows file?
Yes. A missing or damaged system DLL can cause error 126. Run sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth to restore Windows modules.

Still not working?

If you cannot tell which module is missing, a dependency analyser such as Dependencies (the modern Dependency Walker) shows exactly which DLL the program fails to load, so you can target it. You can also submit your error to us for a tailored fix.

Was this fix helpful? Thanks for your feedback!