Windows can't find the required DLL or module. This guide covers every root cause and a step-by-step path to fix it permanently.
Try these in order — most users fix Error 126 within the first two steps.
| # | Fix | Difficulty | Time |
|---|---|---|---|
| 1 | Reinstall or update the affected application | Easy | 5 min |
| 2 | Update or reinstall GPU drivers | Easy | 10 min |
| 3 | Run SFC /scannow to repair Windows files | Medium | 15 min |
| 4 | Restore missing DLL from known-good source | Medium | 10 min |
| 5 | Run DISM to repair Windows image | Advanced | 20 min |
Error 126 is a Windows system error code defined as ERROR_MOD_NOT_FOUND — the specified module could not be found. When an application calls LoadLibrary() or LoadLibraryEx() to load a DLL, Windows searches a defined set of paths. If the DLL isn't found or a dependency of that DLL is missing, you get Error 126.
This error is extremely common when launching games, CAD software, media players, or any application that depends on redistributable libraries like Visual C++ runtimes or DirectX components.
The DLL the program needs simply doesn't exist in any of Windows' search paths (System32, SysWOW64, application folder).
The file exists but has been corrupted by a failed update, disk error, or antivirus quarantine action.
Many game launchers trigger Error 126 specifically when GPU drivers are outdated or partially installed, missing d3d or vulkan layers.
Applications built with MSVC require the matching VC++ runtime. A missing or mismatched version causes DLL load failures at startup.
If the application's folder is not in PATH and the DLL is stored there, Windows won't find it during the load sequence.
Overzealous antivirus programs sometimes quarantine or block legitimate DLL files, causing this error on next launch.
Open Event Viewer → Windows Logs → Application. Look for the error entry. It will name the exact DLL that failed to load. Alternatively, use Dependency Walker or Process Monitor to trace the missing module.
This fixes the majority of gaming-related Error 126 cases. Download the latest driver directly from NVIDIA, AMD, or Intel. Use DDU (Display Driver Uninstaller) in safe mode to do a clean reinstall.
Download all versions (2005–2022) from Microsoft's official page. Install both x86 and x64 versions even on a 64-bit system, since many apps include 32-bit components.
Open Command Prompt as Administrator and run these commands in sequence:
Uninstall the program via Settings → Apps, reboot, then do a fresh install. This forces the installer to re-deploy all required DLLs and register them properly.
No. DLL download sites are a major vector for malware. Always obtain DLLs from the original vendor, Windows Update, or by reinstalling the application.
Mostly, yes. In rare cases it can mean the DLL exists but one of its own dependencies is missing — a transitive failure that Dependency Walker can diagnose.
Yes. Some security tools quarantine legitimate game DLLs. Check your antivirus quarantine folder and add an exclusion for the application directory.