Fix Windows 11 DLL Missing or Not Found Errors
In this article
To fix a missing DLL error on Windows 11, first restart your PC, then run the built-in System File Checker (SFC) and DISM tools, which repair corrupted or missing system files from Microsoft's own repair sources. If the error names a specific third-party DLL, reinstall the program that owns it and install the matching Microsoft Visual C++ Redistributable package. Most DLL errors are caused by damaged system files, incomplete installs, or a DLL that was quarantined by antivirus, and those steps resolve the large majority of cases without downloading random files from the internet.
A DLL (Dynamic Link Library) is a shared code file that programs call on to run. When Windows cannot find one, the app that needs it refuses to start and shows a message like "The code execution cannot proceed because X.dll was not found" or "X.dll is missing from your computer." The goal here is to restore the missing file through official channels so the program starts again, without weakening your system's security. Note that menu labels and wording can differ slightly between Windows 11 versions, editions and regions, so treat the paths below as a guide rather than a script.
What You'll Need
- A Windows 11 PC with administrator rights (the repair tools require an elevated prompt).
- An internet connection for DISM and for downloading official redistributables or installers.
- The name of the missing DLL from the error message, if one is shown.
- The installer for the program that triggered the error, ideally from the vendor's own website or the Microsoft Store.
- Enough free disk space for updates and reinstalls, and a backup of important files if you plan to use System Restore.
Step-by-Step
- Restart the PC. A pending update or a file locked by another process can make a DLL appear missing. A full restart (not sleep) clears that state and is the quickest test.
- Read the exact error text. Note the DLL filename and the program that triggered it. A name like msvcp140.dll or vcruntime140.dll points to the Visual C++ runtime; a name matching the app itself points to a broken install; a system name like kernel32.dll or user32.dll points to damaged Windows files.
- Run the System File Checker. Open Start, type cmd, right-click Command Prompt and choose Run as administrator. Type
sfc /scannowand press Enter. Let it finish; it scans protected system files and replaces damaged ones from a cached copy. Do not close the window mid-scan. - Run DISM to repair the component store. In the same elevated window, type
DISM /Online /Cleanup-Image /RestoreHealthand press Enter. This repairs the image SFC draws from, so run it after SFC if SFC reported errors it could not fix. It can take several minutes and may appear stuck around a percentage; let it run. - Reinstall the affected program. Open Settings > Apps > Installed apps, find the program that showed the error, and choose Uninstall. Then install it again from the vendor's official download page or the Microsoft Store. This replaces any DLLs the program shipped with.
- Install the Visual C++ Redistributable if the missing DLL is a runtime file. Download the latest supported Visual C++ Redistributable for both x86 and x64 from Microsoft's official download page and install them, then restart. Many games and apps depend on these packages, and a missing or mismatched version is a very common cause.
- Check your antivirus quarantine. Open your security app's protection history and look for a recently quarantined or blocked file matching the DLL name. If it was a false positive, restore it through the app's own interface rather than disabling protection.
- Install pending Windows updates. Go to Settings > Windows Update and install everything offered, including optional updates, then restart. Updates can replace or re-register system components an app depends on.
- Use System Restore as a last resort for system-level damage. Search Start for Create a restore point, open System Protection, and choose System Restore to roll back to a point before the errors began. This can remove apps and drivers installed after that point, so review the list of affected programs before confirming.
Common Mistakes
- Downloading DLLs from random "DLL fixer" sites. These files are unverified, may be malware, and often the wrong version or architecture (32-bit versus 64-bit). Only Microsoft, the app vendor, or an official redistributable package should supply a DLL.
- Dropping a DLL into C:\Windows\System32 manually. Even a genuine file placed in the wrong folder or with the wrong registration will not work, and it can break other programs that expect a different version.
- Skipping the restart. SFC, DISM and redistributable installs often only take effect after a reboot.
- Running the repair commands in a normal window. Without administrator rights, SFC and DISM cannot write the repairs.
- Assuming every DLL error means a virus. Most are install or update problems; treat malware as a possibility, not a certainty, and scan rather than panic.
Tips
- Keep a note of the exact DLL name and the app version; it makes searching for the right redistributable far faster.
- Install both the x86 and x64 Visual C++ Redistributables, because 64-bit Windows runs 32-bit programs too.
- Prefer the Microsoft Store or the vendor's own installer over third-party download portals.
- After a major Windows update, re-check for updated redistributables if older games stop launching.
- If only one game fails, verify its files through the game launcher's own repair or verify option before touching Windows system files.
Troubleshooting
If SFC reports that it found corrupt files but was unable to fix some of them, run DISM with the RestoreHealth switch again and then repeat SFC. If DISM itself fails, check that you are online and that Windows Update is not blocked, then try again after a restart.
If the error persists after reinstalling the app, check whether the program is 32-bit or 64-bit and confirm you installed the matching redistributable. A 32-bit app on 64-bit Windows needs the x86 runtime even though the system is 64-bit.
If the DLL disappears again after a reboot, something is removing it: review antivirus quarantine history, check for a failed update rolling back, and run a full malware scan with Microsoft Defender from Windows Security. If the error appears only for one user account, create a new local administrator account and test there to see whether the problem is profile-specific.
If Windows itself will not boot or the errors appear during startup, use the Windows Recovery Environment: hold Shift while choosing Restart from the power menu, then try Startup Repair or System Restore from the recovery options. Back up personal files first whenever you can still reach the desktop.
Frequently Asked Questions
Is it safe to download a missing DLL from a DLL website?
No. Those files are unverified and frequently the wrong version or bundled with malware. Get DLLs only from Microsoft, the app's own installer, or an official redistributable package.
What is the difference between SFC and DISM?
SFC scans and repairs protected Windows system files using a local cache. DISM repairs the underlying component store that SFC relies on, so running DISM after a failed SFC is the usual order.
Why does the error come back after I reinstall the program?
Usually because a dependency outside the app is missing, such as the Visual C++ Redistributable, or because antivirus is quarantining the file again. Check both before reinstalling a third time.
Do I need to reinstall Windows to fix a DLL error?
Almost never. SFC, DISM, a clean reinstall of the affected app, and the correct redistributable resolve most cases. A reset or reinstall is a last resort after those fail.
Can a missing DLL be caused by malware?
It can, if malware deleted or replaced the file, but install and update problems are far more common. Run a full scan with Windows Security to rule it out.
Does System Restore delete my personal files?
No, System Restore affects system files, installed programs, drivers and settings, not your documents. It can remove apps and drivers installed after the restore point, so check the affected programs list before confirming.