TechBuzzPro

DLL Not Found or Missing Error in Windows: How to Fix

· 6 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

A missing DLL error in Windows means a program is trying to load a Dynamic Link Library file that is not where it expects to find it. The quickest fix is to run the built-in System File Checker (SFC) and the DISM repair tool, then reinstall the program that reported the error. Most cases are caused by a corrupted system file, a failed update, or a program that was removed without cleaning up after itself, not by malware.

What You'll Need

  • A Windows 10 or Windows 11 PC with administrator rights (you will be prompted for permission).
  • The name of the missing DLL from the error message, written down exactly.
  • The original installer or download link for the program that shows the error.
  • An internet connection for Windows Update and for reinstalling software.

Step-by-Step

  1. Read the error message carefully. It usually names the DLL (for example, msvcp140.dll or xinput1_3.dll) and the program that needs it. Write both down. The file name tells you which component is missing: names starting with msvcp, vcruntime, or msvcr belong to the Microsoft Visual C++ Redistributable, while d3dx, xinput, and xaudio files belong to DirectX.
  2. Restart the PC. A pending update or a file lock can make a DLL appear missing. Restart and try opening the program again before changing anything.
  3. Run the System File Checker. Open Start, type cmd, right-click Command Prompt, and choose Run as administrator. Type sfc /scannow and press Enter. Let it finish; it scans protected Windows files and replaces corrupted ones. Restart afterwards.
  4. Run DISM if SFC finds errors it cannot fix. In the same administrator Command Prompt, type DISM /Online /Cleanup-Image /RestoreHealth and press Enter. This repairs the component store that SFC uses as its source. It can take several minutes. Restart when it completes.
  5. Install the matching Visual C++ Redistributable. If the missing file is a vcruntime or msvcp DLL, download the latest supported Visual C++ Redistributable package from Microsoft's official download page. Install both the x86 and x64 versions, because 64-bit Windows runs both 32-bit and 64-bit programs. Restart and test the program.
  6. Update DirectX for d3dx, xinput, or xaudio errors. Use the DirectX End-User Runtime Web Installer from Microsoft's official download page. It adds the older DirectX 9 components that many games still need, even on Windows 11.
  7. Reinstall the affected program. Uninstall it from Settings > Apps > Installed apps, then install it again from the original source. This restores any DLLs that shipped with the program and were deleted or overwritten.
  8. Check Windows Update. Go to Settings > Windows Update and install all pending updates, including optional updates. Some DLL fixes arrive through the cumulative update channel.
  9. Run a malware scan. Use Microsoft Defender or another reputable security tool to scan for malware that may have deleted or replaced system files. Remove anything it finds, then rerun SFC.

Common Mistakes

  • Downloading DLLs from random websites. DLL files are executable code. A file from an unknown site can carry malware or be the wrong version, which causes new crashes. Only get DLLs from Microsoft, the program's official installer, or the game's own store page.
  • Copying a DLL into C:\Windows\System32 by hand. This often breaks things because the file may be the wrong architecture (32-bit vs 64-bit) or the wrong version for the program. Let the official installer place files where they belong.
  • Installing only the x64 redistributable. Many games and apps are still 32-bit, so the x86 package is also required on 64-bit Windows.
  • Skipping the restart. SFC and DISM often need a restart before the repaired files are actually in use.
  • Ignoring the exact file name. The fix depends on which DLL is missing. A vcruntime error and a d3dx error need different packages.

Tips

  • Keep a note of which Visual C++ Redistributable versions are installed. Settings > Apps > Installed apps lists them, and having the right ones installed prevents most future DLL errors.
  • Install games through their official launcher or store rather than copying folders between PCs, because the launcher registers the required redistributables automatically.
  • If the error appears only after a Windows update, check Windows Update again for a follow-up patch before making manual changes.
  • Use the 64-bit (x64) Command Prompt for SFC and DISM; the 32-bit version can give misleading results on 64-bit Windows.
  • Create a restore point before making manual system changes, so you can roll back if a fix makes things worse.

Troubleshooting

If SFC reports that it found corrupt files but was unable to fix some of them, run DISM with the RestoreHealth switch first, then run SFC again. If DISM also fails, check that the Windows Update service is running and that you have free disk space, then retry.

If the error persists after reinstalling the program, check whether the program is 32-bit or 64-bit and confirm you installed both redistributable packages. For games, verify the game files through the launcher's own repair or verify option, which re-downloads missing DLLs.

If the error names a DLL you do not recognise and appears at startup, open Task Manager > Startup apps and disable recently added startup entries, then restart. If the problem started after installing a new program, uninstall that program and restart.

If Windows itself will not start and shows a DLL error, boot into Safe Mode (hold Shift while choosing Restart from the power menu) and run SFC and DISM there. If that fails, use the Windows recovery options to run a startup repair or reset Windows, which removes installed programs but keeps personal files if you choose that option.

Frequently Asked Questions

Is it safe to download a missing DLL from a DLL website?

No. Those sites are not official sources, and the file can be malware or the wrong version. Get the DLL through the program's official installer, the Visual C++ Redistributable, or DirectX from Microsoft.

Why does the error come back after I fix it?

Usually because the underlying program or redistributable that owns the DLL was not reinstalled, or because a pending Windows update overwrote the file. Reinstall the program and check Windows Update.

Do I need both the x86 and x64 Visual C++ Redistributable?

Yes, on 64-bit Windows. 32-bit programs need the x86 package, and 64-bit programs need the x64 package. Installing both covers all cases.

Can a missing DLL be caused by a virus?

It can. Some malware deletes or replaces system files. Run a full scan with Microsoft Defender, remove any threats, then run SFC and DISM again.

Will System Restore fix a missing DLL error?

It can if the problem started after a recent change. Restoring to a point before the error returns the system files to their earlier state, but it also undoes programs installed after that point.

Does resetting Windows remove my personal files?

The Keep my files option removes installed programs and settings but keeps documents, photos, and other personal files. The Remove everything option deletes them, so back up first.