Every guide lists its sources, tips, and warnings. Read our editorial policy.

How to Fix MSVCP140.dll Was Not Found When the Redistributable Is Already Installed

That dialog means the loader could not find one specific copy of the Visual C++ runtime. There are two copies, one 32-bit and one 64-bit, shipped in two separate packages. Most games are 32-bit and need the x86 package, which is the one people forget.

The short answer

That dialog means the loader could not find one specific copy of the Visual C++ runtime. There are two copies, one 32-bit and one 64-bit, shipped in two separate packages. Most games are 32-bit and need the x86 package, which is the one people forget.

Download the full guide (PDF) Print checklist
Share
Set 52runoob as a preferred source on Google

You double-click a game you own and get `The code execution cannot proceed because MSVCP140.dll was not found. Reinstalling the program may fix this problem.` Settings already lists Visual C++ 2015-2022, you reinstall it, and the dialog returns unchanged. Windows keeps two copies of that DLL and never says which one is missing. Check your system information first, then read the folders.

Quick steps

  1. Note the exact file name in the dialog
  2. Check the app's Platform column in Task Manager
  3. Look for the DLL in SysWOW64 and in System32
  4. Install vc_redist.x86.exe as well as vc_redist.x64.exe
  5. Repair the x64 package instead of reinstalling it
  6. Run the redist folder inside the game directory
  7. Never take the DLL from a download site

Things you'll need

  • An administrator account
  • vc_redist.x86.exe and vc_redist.x64.exe from Microsoft's own download page
  • About 100 MB of free space on C:
  • Two reboots you are allowed to perform

Step-by-step

Method 1 of 3

Method 1 of 3: Work Out Which Copy Is Missing

PDF
Step 1: Read the DLL name in the dialog Download image

Step 1: Read the DLL name in the dialog

Write the exact file name down. MSVCP140.dll is the C++ standard library; VCRUNTIME140.dll is the small loader stub beside it. Both ship in the same package, but one never covers for the other, and the fix differs.

Step 2: Check the app's Platform column Download image

Step 2: Check the app's Platform column

Start the app, open Task Manager → Details, and find its process. The Platform column reads 32-bit or 64-bit. A 32-bit process looks in SysWOW64 only, so an x64-only install leaves it hunting a file nobody placed.

Step 3: Look for the 32-bit copy in SysWOW64 Download image

Step 3: Look for the 32-bit copy in SysWOW64

Open C:\Windows\SysWOW64 and look for msvcp140.dll. On 64-bit Windows this folder holds 32-bit binaries. The folder name and the bitness run opposite to intuition, and that reversal is behind most of the bad advice online.

Step 4: Look for the 64-bit copy in System32 Download image

Step 4: Look for the 64-bit copy in System32

Open C:\Windows\System32 and find the same file. Here the binaries are 64-bit. If one folder has the file and the other does not, you already know which package is missing and can skip the rest of this method.

Step 5: Compare the two file versions Download image

Step 5: Compare the two file versions

Right-click each copy → Properties → Details and read the File version field. One build reporting 14.0.24215 next to another reporting 14.38 means the 32-bit package is years stale and cannot serve a newer program.

Step 6: Check which package is really listed Download image

Step 6: Check which package is really listed

Open Settings → Apps → Installed apps and search for Visual C++. You will see separate x86 and x64 entries with nearly identical names. If only the x64 entry exists, the dialog is accurate and you want method two.

Source: Microsoft Learn — Running 32-bit Applications · See also Microsoft Learn — Dynamic-Link Libraries · Read next: Remove Malware From a PC

Step 7: Rule out a broken side-by-side manifest Download image

Step 7: Rule out a broken side-by-side manifest

Open Event Viewer → Windows Logs → Application and look for SideBySide entries at the moment of the failure. A manifest error means the file is present but its registration is damaged, which is a different repair job than a missing file.

Method 2 of 3

Method 2 of 3: Install Both Architectures in Order

PDF
Step 8: Download both installers from Microsoft Download image

Step 8: Download both installers from Microsoft

Get vc_redist.x86.exe and vc_redist.x64.exe from Microsoft's own Visual C++ download page. Skip mirrors, game repacks, and any page offering a single file. Each installer is roughly 25 MB and carries a valid signature.

Step 9: Install the x86 package first Download image

Step 9: Install the x86 package first

Run vc_redist.x86.exe and choose Install. This is the package that puts a 32-bit msvcp140.dll into SysWOW64. Nothing on screen says 32-bit, which is exactly why the step gets skipped by nearly everyone.

Step 10: Repair the x64 package, do not reinstall Download image

Step 10: Repair the x64 package, do not reinstall

Run vc_redist.x64.exe and pick Repair when the choice appears. Repair rewrites files and registry keys without disturbing other software. If this option is greyed out, the package is not registered at all, so choose Install instead.

Step 11: Reboot before launching the game Download image

Step 11: Reboot before launching the game

Restart Windows, then start the game from its own shortcut rather than a launcher overlay. The loader resolves DLL paths when a process starts, so a running launcher can keep the old answer. Same dialog means the copy is wrong, not missing.

Step 12: Run the redist folder inside the game Download image

Step 12: Run the redist folder inside the game

Open the game's install folder and look for Redist, _CommonRedist, or vcredist. Run whatever installer sits inside. Publishers pin the exact runtime they built against, and that build is often newer than the copy installed on your system.

Source: Microsoft Learn — Dynamic-Link Libraries · See also Microsoft Learn — Running 32-bit Applications · Read next: Remove Malware From a PC

Step 13: Repair the protected system copy Download image

Step 13: Repair the protected system copy

Open Command Prompt as administrator and run sfc /scannow. It takes 5 to 15 minutes. This replaces a corrupted copy in System32 that the redistributable installer skips, because setup trusts any file whose version is already current.

Method 3 of 3

Method 3 of 3: Find What the Loader Really Wants

PDF
Step 14: Trace the real import with Dependencies Download image

Step 14: Trace the real import with Dependencies

Open the game's exe in the free Dependencies tool and expand the tree. It lists every DLL the loader asks for and marks the failures in red. One minute of this beats an hour of reinstalling packages that were never the problem.

Step 15: Hunt for a wrong-version copy on disk Download image

Step 15: Hunt for a wrong-version copy on disk

Open C:\Windows\System32, sort by Date modified, and look at msvcp140.dll. A file dropped there by a repack or a forum zip will carry a recent date and still be wrong, because its version does not match what the app requests.

Step 16: Check the copy sitting beside the exe Download image

Step 16: Check the copy sitting beside the exe

If the game folder holds its own msvcp140.dll, the loader uses that one before anything in System32. Rename it to msvcp140.old and relaunch. If the dialog clears, the bundled copy was older than the installed package.

Step 17: Uninstall both, then install in order Download image

Step 17: Uninstall both, then install in order

Remove every Visual C++ 2015-2022 entry in Installed apps, reboot, then install x86 and x64 again in that order. Do this only after comparing versions, because other programs will pick up whatever you leave behind.

Step 18: Test under a fresh user account Download image

Step 18: Test under a fresh user account

Create a local account and run the game there. A new profile carries no per-user compatibility shims and no DLL redirection. If the game starts for that account, the fault is a setting in your profile, not the runtime.

Source: Microsoft Learn — Running 32-bit Applications · See also Microsoft Learn — Dynamic-Link Libraries · Read next: Remove Malware From a PC

Step 19: Stop when the missing file is not Microsoft's Download image

Step 19: Stop when the missing file is not Microsoft's

If both packages are installed, the versions match, and Dependencies names a DLL the vendor never shipped, stop. Send that screenshot to the publisher. A clean Windows install cannot supply a file nobody makes, and you will lose a day finding out.

Tips

  • The x86 package is not the legacy one. A 32-bit game on 64-bit Windows needs it, no matter how new the PC is.
  • Version numbers matter more than package names. A 2015 build will not satisfy a loader asking for 14.29 or later.
  • Look inside the game folder for Redist or _CommonRedist before you download anything. The answer is often already there.
  • A file named msvcp140_app.dll is the Store variant of the same library. It is not a substitute for the desktop one.

Warnings

  • Never take msvcp140.dll from a DLL download site. Those files are unsigned, often patched, and occasionally wrapped in an installer.
  • Do not paste a 64-bit DLL into SysWOW64 or the reverse. You will break every program that already depends on the good copy.
  • Do not uninstall the Visual C++ packages to clean up. Other software will stop launching on the next boot.
  • System Restore cannot restore a DLL that was never installed. Pick a restore point from before the game was installed only if something else broke.

Frequently asked questions

Why does the error appear when the redistributable is clearly installed?

Because there are two of them. The 64-bit package never places a 32-bit DLL, and most games load the 32-bit one.

Is msvcp140.dll the same file as vcruntime140.dll?

No. They are separate files from the same package. Having one does not satisfy a request for the other, and swapping them breaks the app.

Does the 2015 package cover a program built with 2022?

No. 2015 through 2022 share one redistributable line, but the 2015 build alone is too old for a binary compiled later.

Can I just drop the DLL next to the game exe?

It sometimes works for a test and it is not a fix. You also need the matching vcruntime and manifest, so install the package.

References

  1. Microsoft Learn — Latest supported Visual C++ Redistributable. https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist
  2. Microsoft Learn — Dynamic-Link Library Search Order. https://learn.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order
  3. Microsoft Learn — C++ build documentation. https://learn.microsoft.com/en-us/cpp/windows/
  4. Microsoft Support — Windows help and learning. https://support.microsoft.com/en-us/windows

Every guide is reviewed against its sources. See our editorial policy.

Get one fix like this every week

One short email with the most useful new guide and a printable checklist. No spam, unsubscribe anytime.

Reader comments

0 so far

Finished this guide? Tell other readers what worked, what didn't, and what you would change.

Stuck on a step? Tell us your device model and what happened — an editor reads every comment and usually replies within 48 hours.

Be kind and constructive. Comments are published instantly.