“LoadLibrary failed with error 126: The specified module could not be found” stops your app or game from launching on Windows 11 or Windows 10. Windows couldn’t load a module the program needs, or one of that module’s own dependencies, and a broken or mismatched graphics driver is a common cause in games and 3D apps.
Check This First: A Two-Minute Diagnosis
Error 126 is a generic “couldn’t load a required file” failure. A few quick checks tell you whether to fix one app or the whole system, and that saves you from reinstalling drivers you didn’t need to touch.
- Write down the full error text, the app name, and whether it started after a driver, Windows, or app update.
- Launch a different graphics-heavy app or game. If only one program fails, the problem is probably that program or its bundled files. Start with Fix #1, then go to the app repair steps in the “When the Standard Steps Fail” section before you change drivers.
- Press
Windows + R, typeeventvwr.msc, and press Enter. - Go to Windows Logs > Application and look for an Error entry logged at the time of the crash. It often names the app and the DLL that failed.
- If the error names a specific DLL, note it. You’ll use that name later.
Don’t download a replacement DLL from a “free DLL download” website. Those files can be the wrong version, the wrong architecture, or malware. Get drivers, runtimes, and app files only from Microsoft, your GPU or PC manufacturer, or the app’s publisher.
Fix #1: Run Your App as an Administrator
For an app you trust, elevation can be a useful diagnostic test; it grants the app broader access to your PC. It only helps when the program needs to read a protected folder or write a setting that a standard account can’t reach, so treat it as a diagnostic, not a guaranteed cure. If you can’t launch your app or game normally, try this first.
- Find your app or game in the Start menu or on your desktop.
- Right-click it and choose Run as administrator.
- Select Yes in the User Account Control prompt.
If the app opens without the error, elevation changed something relevant; it does not prove permissions were the only cause. To make that desktop shortcut always launch elevated:
- Right-click the shortcut and choose Properties.
- Select the Shortcut tab.
- Choose Advanced.
- Turn on Run as administrator and select OK.
- Select Apply, then OK.
That setting sticks to that one shortcut only. Pinned taskbar icons, Start menu entries, and the .exe itself keep their own behavior.
A couple of honest caveats. If you launch the game through Steam, Epic Games, Xbox, or another launcher, elevating the visible shortcut may not elevate the game process the launcher actually starts. Running everything as admin also weakens your security and can break drag-and-drop between apps. I’d only keep the permanent setting if you’ve confirmed it fixes this specific app, and if you run into trouble launching an app from the Microsoft Store, use its Repair option instead (covered later).
Fix #2: Disconnect Your Secondary Display
A second monitor doesn’t normally cause a DLL load failure on its own. It can, however, expose a bug in how an app picks a graphics adapter or output, especially with full-screen mode, HDR, unusual scaling, or a docking station in the chain. Testing with one screen takes 10 seconds.
- Press
Windows + P. - Choose PC screen only.
- Launch your app or game again.
If you’d rather physically test, unplug the external monitor’s HDMI cable or DisplayPort cable and relaunch.
If the error disappears, try making your main monitor the primary display instead of leaving it unplugged. Microsoft’s guide to using multiple monitors in Windows covers the current layout.
- Open Settings > System > Display.
- Select the monitor you want as primary at the top of the page.
- Expand Multiple displays (Windows 11) or scroll down to the same section (Windows 10).
- Turn on Make this my main display, if that option is available. It appears only when the selected monitor is not already primary; some docking station and DisplayLink setups may not show it at all, in which case use
Windows + Pto control which screen is active.
If one screen fixes it, these follow-up tweaks often let you keep both monitors:
- Turn off HDR and variable refresh rate temporarily.
- Switch the game from exclusive full-screen to borderless or windowed mode.
- Disable overlays from your GPU vendor, Xbox Game Bar, Discord, or recording software.
- Bypass your USB-C dock or DisplayLink adapter and plug the monitor straight into the PC, then update the dock’s firmware and driver.
Fix #3: Disable Your Secondary Graphics Adapter
Laptops and some desktops have two GPUs: integrated graphics in the processor and a dedicated NVIDIA or AMD card. Testing the other GPU can help identify an adapter-specific problem. There’s a gentler way to test this before you disable anything, and it actually works well on hybrid-graphics laptops.
Try per-app GPU selection first:
- Open Settings > System > Display > Graphics.
- Find your app in the list, or use the browse or add option to add its .exe.
- Select the app and choose Options.
- Pick High performance to force the dedicated GPU, then select Save.
The labels and layout on this page vary by Windows build, driver, and whether the app is a Store app or a classic desktop program.
If that doesn’t help, disable the adapter as a test:
Before you start, identify which GPU is actually doing the work. Check Settings > System > Display > Advanced display, or Task Manager’s Performance tab. A second entry might be Microsoft Basic Display Adapter or a virtual remote-display adapter, not a spare GPU.
- Right-click the Start button and choose Device Manager.
- Expand Display adapters.
- Right-click the adapter your app shouldn’t be using and choose Disable device.
- Select Yes to confirm.
- Launch your app or game.
Be careful on laptops. One GPU might drive the built-in screen while the other drives the external ports, so disabling the wrong one can leave you with a black screen or a missing monitor. If the test doesn’t fix the error, right-click the adapter again and choose Enable device.
Fix #4: Update Your Graphics Card Drivers
An outdated driver can be missing the files a newer game or app tries to load. Updating through Device Manager is Microsoft’s documented method for updating drivers. If an older driver is behind why you can’t launch your app, updating your drivers is the fix.
- Open Start, search for Device Manager, and open it.
- Expand Display adapters, right-click your GPU, and choose Update driver.
- Select Search automatically for drivers. The exact wording can differ slightly between Windows releases.
- Wait for Windows to finish searching and installing.
- Restart your PC.
Device Manager often reports “The best drivers for your device are already installed” even when the manufacturer has something newer. Check these sources too:
- Settings > Windows Update, then Advanced options > Optional updates > Driver updates, if any are listed.
- AMD, NVIDIA, or Intel’s official driver download page for desktop GPUs.
- Your laptop maker’s support page first if you’re on a laptop. OEM drivers handle hybrid graphics and display switching that generic packages sometimes miss.
Did the error start right after a driver update? Roll back instead. In Device Manager, right-click the GPU, choose Properties > Driver, and select Roll Back Driver. If that button is greyed out, Windows didn’t keep the previous version, so download the older driver from the manufacturer instead.
Fix #5: Uninstall and Reinstall Your Graphics Card Drivers
If your app or game doesn’t launch even after an update, the driver install itself may be damaged. This process removes the device’s installed driver package where Windows offers that option and lets you install the manufacturer package again.
Download the correct driver from your GPU or PC manufacturer before you start. You’ll want it ready.
- Open Device Manager.
- Expand Display adapters, right-click your GPU, and choose Uninstall device.
- Check Attempt to remove the driver for this device, if it’s offered, and select Uninstall.
- Wait for the removal to finish. The screen may flicker or drop to a lower resolution. That’s expected.
- Restart your PC.
- Open Device Manager and check the name under Display adapters.
- Run the driver installer you downloaded earlier.
Windows sometimes reinstalls a driver by itself after the restart, but it can also land on the Microsoft Basic Display Adapter. That’s a fallback display driver with no gaming or 3D acceleration, so if you see it in step 6, installing the official package in step 7 is required.
You don’t need to remove your GPU’s control panel or overlay apps for a normal reinstall. If your GPU vendor’s installer offers a clean-install or reset option, read its description before using it; availability varies by package and version. Prefer the vendor’s supported instructions to a third-party cleanup tool.
Fix #6: Fix Windows’ Corrupted System Files
If the missing module is part of Windows itself, DISM and System File Checker (SFC) can restore it. DISM repairs the Windows component store that SFC copies from, so it runs first. Microsoft’s Windows troubleshooting guidance uses this same order. When corrupted Windows files are why you can’t launch your app, these two commands fix all those broken system files.
- Open Start, search for Command Prompt, and select Run as administrator.
- Choose Yes in the User Account Control prompt.
- Type
DISM.exe /Online /Cleanup-image /Restorehealthand press Enter. - Wait for “The restore operation completed successfully.” It can sit at one percentage for several minutes, so don’t close the window.
- Type
sfc /scannowand press Enter.
- Restart your PC when the scan finishes.
Keep expectations realistic. These tools repair protected Windows files. They won’t fix a game’s bundled DLLs or your GPU driver. If SFC says it couldn’t repair some files, restart and run it once more. Persistent failures get logged in C:\Windows\Logs\CBS\CBS.log.
Fix #7: Clean Boot Your Windows System
If the error still won’t budge, another program might be injecting itself into your app, blocking it, and preventing you from successfully launching your item. A clean boot starts Windows with only Microsoft services running so you can see whether something third-party is the culprit. It’s different from Safe Mode, because your normal drivers still load. Here’s how to clean boot your Windows PC:
- Press
Windows + R, typemsconfig, and press Enter. - Open the Services tab.
- Check Hide all Microsoft services. Don’t skip this one, because disabling Microsoft services can make Windows unstable.
- Select Disable all.
- Open the Startup tab and select Open Task Manager.
- On Task Manager’s startup apps page, disable each enabled non-essential item.
- Close Task Manager and select OK in System Configuration.
- Restart your PC and launch your app.
If the app works now, re-enable services and startup items in small groups, restarting each time, until the error returns. The usual suspects are overlays, RGB and hardware-monitoring utilities, audio enhancers, anti-cheat tools, game launchers, and third-party security software.
When you’re done, open msconfig again, select Normal startup, select OK, and restart. On a work PC, leave management and security agents alone unless your IT admin agrees.
When the Standard Steps Fail
If you’ve worked through all seven fixes and the error keeps appearing, one of these is usually the reason.
The app is missing a runtime, not a driver file
Error 126 often points at a DLL that exists, while the real problem is one of that DLL’s dependencies. Common missing pieces:
- Microsoft Visual C++ Redistributable packages
- Legacy DirectX components for older games
- .NET Desktop Runtime
- Vulkan, OpenCL, or CUDA components for creative and AI apps
Install the exact versions the publisher lists, from Microsoft or the publisher. A 64-bit app needs 64-bit runtimes, and a 32-bit app needs 32-bit ones, so you may need both on the same PC. Never copy DLLs into System32, SysWOW64, or the app folder by hand, even if an old forum post says it worked.
Only one program fails
Repair that program directly. This is often the quickest win of the bunch.
- Open Settings > Apps > Installed apps (on Windows 10, Settings > Apps > Apps & features).
- Find the app, select the three-dot menu or the app name, and choose Advanced options.
- Select Repair. Use Reset only after backing up the app’s data, because it wipes local settings.
Classic desktop programs may not show Advanced options at all. Use the publisher’s own repair tool or reinstall it instead. For games, use the launcher’s Verify or Repair files option, and remove any recently added mods, plugins, or injectors.
A setting or button is missing or greyed out
- Run as administrator is greyed out on Store and packaged apps. Use Repair instead.
- Make this my main display doesn’t show up when the selected monitor is already primary, or with some docks, DisplayLink setups, and Remote Desktop sessions. Use
Windows + Pinstead. - Roll Back Driver is greyed out when no previous driver is stored. Download the older version from the manufacturer.
- DISM reports the source files couldn’t be found. It needs Windows Update access or installation media matching your exact Windows edition, language, and architecture.
Your security software is blocking the file
Antivirus and ransomware protection can block a DLL without deleting it. Check Windows Security > Virus & threat protection > Protection history, or your third-party product’s quarantine. Restore the file only if it came from the official publisher, and add an exclusion for that one item instead of switching protection off. While you’re there, run a full Microsoft Defender scan to rule out malware.
Your PC is managed by work or school
Organization policies can lock driver installs, block msconfig changes, or restrict DISM repairs. If Device Manager options are disabled or you see “This setting is managed by your organization,” send the error details to your IT team.
You’re a developer seeing this in your own build
Check the working directory, the DLL search path, and whether a plugin was built for the wrong architecture. A process launched from your IDE may also inherit different environment variables than a normal launch. A dependency-analysis tool will tell you which module is actually missing.
If none of this helps, contact the app’s publisher with the Event Viewer entry and the DLL name. A Windows in-place repair install is the last step before a full reset.
Resolve a LoadLibrary Error to Launch Your Apps or Games Without Issues
For games and 3D apps, Fix #5 (removing the driver package via Device Manager and reinstalling from the official manufacturer package, not whatever Windows grabs automatically after a restart) is the one I’d bet on. If only one program throws the error, skip the driver work and repair that app and its Visual C++ runtimes first.
Bookmark this one, and if the error keeps returning after a clean Windows install with fresh drivers, contact the PC or app vendor for further diagnosis; hardware, drivers, the app, and other system components may need investigation.