TechBuzzPro

How to Fix MSVCP140.dll Missing Error on Windows 11

· 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

The msvcp140.dll missing error means a program is trying to use the Microsoft Visual C++ 2015–2022 Redistributable runtime and cannot find one of its core files. The quickest fix is to install the official Microsoft Visual C++ Redistributable package (both x86 and x64 versions) from Microsoft's download page, then restart your PC. That replaces the missing DLL with a correctly registered copy and usually clears the error for all affected apps at once.

This guide walks through the official, safe ways to restore msvcp140.dll on Windows 11, from the one-click redistributable installer to repairing a damaged system file. It also covers what to do if the error persists and which “fixes” to avoid.

What You'll Need

  • A Windows 11 PC with an internet connection (or another PC to download the installer if the affected one cannot browse).
  • Administrator rights on the PC, because installing the redistributable and running system repair tools requires elevation.
  • The name of the app that triggered the error, so you can test the fix afterward.
  • About 10–15 minutes and a planned restart.

Step-by-Step

  1. Close the affected program. If the error dialog is still on screen, click OK and close the app. Installing system components while the app is running can leave files locked.
  2. Download the official Visual C++ Redistributable. Go to Microsoft's official download page for the latest supported Visual C++ Redistributable (search “Microsoft Visual C++ Redistributable latest” from your browser). Download both the x64 and x86 installers. Windows 11 is 64-bit, but many 32-bit apps still need the x86 runtime, so installing both prevents the error from returning for a different program.
  3. Run the x64 installer. Double-click the downloaded file (typically named something like vc_redist.x64.exe). Accept the license terms and click Install. If Windows asks for permission, choose Yes. Wait for the “Setup Successful” message, then click Close.
  4. Run the x86 installer. Repeat the same process with vc_redist.x86.exe. If the installer offers a Repair option instead of Install, choose Repair — that means the package is already present but damaged.
  5. Restart your PC. A restart ensures the new DLLs are registered and any pending file replacements complete. Don't skip this step; testing before a restart can give a false failure.
  6. Launch the app that showed the error. If it opens normally, the fix is complete. If the same msvcp140.dll message appears, continue to the next steps.
  7. Run the System File Checker. Open Start, type cmd, right-click Command Prompt and choose Run as administrator. Type sfc /scannow and press Enter. This scans Windows system files and repairs corrupted ones. It can take several minutes; let it finish and note whether it reports repaired files.
  8. Run the DISM repair. In the same elevated Command Prompt, type DISM /Online /Cleanup-Image /RestoreHealth and press Enter. This repairs the Windows component store that SFC relies on. When it completes, restart and test the app again.
  9. Reinstall the affected application. If only one program fails, uninstall it and reinstall it from its official source. Some installers bundle their own Visual C++ runtime and may not have registered it correctly. Download the app only from the developer's official site or the Microsoft Store.
  10. Check Windows Update. Go to Settings > Windows Update and install any pending updates, including optional ones. Microsoft occasionally ships updated runtime components through servicing updates. Restart if prompted.

Common Mistakes

  • Downloading the DLL from a “DLL fixer” site. Random DLL files from third-party download sites can be malware or the wrong version, and dropping them into System32 rarely works because the file also needs correct registration. Stick to Microsoft's redistributable installer.
  • Installing only the x64 package. 32-bit applications still need the x86 runtime. Install both to avoid the same error in a different program later.
  • Skipping the restart. The installer may report success while files are still pending replacement. Always restart before concluding the fix failed.
  • Copying a DLL from another PC. Versions and builds differ, and a mismatched DLL can cause new crashes. Use the official installer instead.
  • Ignoring the app's own installer. Some programs expect a specific runtime version. Reinstalling the app from its official source often restores the exact files it needs.

Tips

  • Keep the Visual C++ Redistributable packages installed rather than removing them to “clean up.” Many games and apps depend on them silently.
  • If you manage several PCs, download the redistributable once and keep it on a USB drive for offline installs.
  • Before running SFC or DISM, make sure you have enough free disk space (a few gigabytes is safe) and keep the PC plugged in if it is a laptop.
  • Note the exact error text and the app name. If you need to ask for help, that detail narrows down whether the problem is system-wide or specific to one program.
  • Use only official sources: Microsoft's download page for the redistributable and the app developer's site for the app itself.

Troubleshooting

If the error still appears after installing both redistributable packages and restarting, work through these checks in order:

  • Confirm the install actually completed. Open Settings > Apps > Installed apps and look for “Microsoft Visual C++ 2015–2022 Redistributable (x64)” and “(x86)”. If either is missing, run its installer again.
  • Repair instead of reinstall. Run the redistributable installer again and choose Repair if offered. This re-registers the DLLs without removing them first.
  • Check for a pending Windows restart. Some updates stage files until reboot. Restart and test again before trying anything else.
  • Test with a different user account. If the app works under another account, the problem may be a corrupted user profile rather than the system files. Creating a new local account and testing there helps isolate it.
  • Look at the app's own requirements. Some older programs need a specific redistributable version that the latest package does not replace. Check the developer's support page for the required runtime and install that exact package from Microsoft.
  • Run a malware scan. Use Microsoft Defender (Settings > Privacy & security > Windows Security > Virus & threat protection) to rule out malware that damaged or replaced system files.
  • Last resort: reset Windows. If nothing else works, Settings > System > Recovery offers “Reset this PC.” Choose Keep my files to preserve documents, but note that installed apps will be removed and must be reinstalled. Back up important data first.

Frequently Asked Questions

Is msvcp140.dll a virus?

No. It is a legitimate Microsoft Visual C++ runtime library used by many programs. A file with that name in a random folder could be suspicious, but the real file belongs to the redistributable package.

Can I just download msvcp140.dll and put it in System32?

It is not recommended. The file needs the correct version and registration, and third-party DLL downloads carry malware risk. Install the official redistributable instead.

Do I need both the x86 and x64 redistributables?

Yes, install both. 64-bit Windows runs 32-bit apps too, and those apps need the x86 runtime.

Will reinstalling the redistributable affect my other programs?

No. It installs shared runtime files that multiple apps use. Existing programs continue to work and may even benefit from the updated version.

Why does the error appear only for one game or app?

That app likely depends on a specific runtime version or its installer did not register the files correctly. Reinstalling the app from its official source often resolves it.

Does Windows 11 include msvcp140.dll by default?

Windows 11 includes some runtime components, but many apps require the separately installed Visual C++ Redistributable. Installing it is the standard fix.