How to Fix MSVCP140.dll or VCRUNTIME140.dll Missing in Windows 11

"MSVCP140.dll was not found" or "VCRUNTIME140.dll is missing"? Install both Visual C++ redistributables, repair broken ones, and skip DLL sites.

  • 8 fixes, easiest first
On this page · 8 steps

Symptoms

  • A dialog naming MSVCP140.dll, VCRUNTIME140.dll, or one of the _1 / _2 variants.
  • A game launcher closes silently, or the game exits to the desktop with no error at all.
  • The error appears for several unrelated programs at once. That confirms the shared runtime is the problem, not one app.

Which File Means What

File in the error Comes from Fix
MSVCP140.dll, MSVCP140_1.dll, MSVCP140_2.dll C++ standard library, 2015-2022 package Steps 1-2
VCRUNTIME140.dll, VCRUNTIME140_1.dll C runtime, same 2015-2022 package Steps 1-2
MSVCR120.dll, MSVCP120.dll Visual C++ 2013 Step 3
MSVCR110.dll / MSVCR100.dll Visual C++ 2012 / 2010 Step 3

VCRUNTIME140_1.dll only exists in newer builds of the 2015-2022 package. If that is the file named, your installed runtime is too old. Installing the current package (Step 1) replaces it.

Step 1: Install the Current Visual C++ Redistributable

This step fixes most cases.

  1. Open Microsoft's "Latest supported Visual C++ Redistributable downloads" page (learn.microsoft.com/cpp/windows/latest-supported-vc-redist). Do not download a DLL from a third-party "DLL library" site.
  2. Download both packages: vc_redist.x64.exe and vc_redist.x86.exe.
  3. Install the x64 package, then the x86 one. 32-bit apps need the x86 runtime even on 64-bit Windows, and many missing-DLL reports come down to exactly this.
  4. Reboot, then try the app again.
Did it work?No, go to Step 2

Step 2: Repair an Existing Installation

If the redistributable is already installed, the files are probably damaged rather than missing.

  1. Run vc_redist.x64.exe again. When it detects an existing install it offers Repair: choose it.
  2. Do the same for vc_redist.x86.exe.
  3. Or open Settings then Apps then Installed apps. For each Microsoft Visual C++ 2015-2022 Redistributable entry, click ⋯ then Modify then Repair.
  4. Reboot after repairing both.
Did it work?No, go to Step 3

Step 3: Install the Older Runtimes Too

Older games and utilities are linked against earlier runtimes that the current package does not replace.

  1. Install the Visual C++ 2013, 2012, and 2010 redistributables from Microsoft, in both x64 and x86 where offered.
  2. They install side by side and do not conflict with the 2015-2022 package.
  3. If a game shipped a _CommonRedist or Redist folder (common on Steam and GOG titles), run the installers inside it. On Steam, right-click the game → Manage then Browse local files to find it.
Did it work?No, go to Step 4

Step 4: Check Antivirus Quarantine

Security software sometimes flags a runtime DLL from a game installer as suspicious and removes it.

  1. Open Windows Security then Virus & threat protection then Protection history.
  2. Look for a quarantined item with MSVCP140, VCRUNTIME140, or the app's folder in its path.
  3. If you recognize the app and trust where it came from, choose Actions then Restore.
  4. Check any third-party security suite's own quarantine as well.
  5. If you do not recognize the app, leave it quarantined and run a full scan in Windows Security.
Did it work?No, go to Step 5

Step 5: Verify or Reinstall the App Itself

If only one program shows the error, its bundled copy of the runtime may be broken.

  1. Steam: right-click the game → Properties then Installed Files then Verify integrity of game files.
  2. Epic Games: Library → ⋯ then Manage then Verify.
  3. Normal program: Settings then Apps then Installed apps then ⋯ then Modify/Repair if offered. Otherwise uninstall, reboot, and reinstall from the official source. Most installers include the correct runtime.
Did it work?No, go to Step 6

Step 6: Repair Windows System Files

If DLL errors appear across many programs even after Steps 1-2, system file corruption can stop the runtime from installing cleanly.

  1. Open Terminal (Admin) and run:
    sfc /scannow
    
    DISM /Online /Cleanup-Image /RestoreHealth
    
  2. Reboot, run sfc /scannow once more to confirm a clean result, then repeat Step 1.
  3. Full walkthrough: how to run SFC and DISM.
Did it work?No, go to Step 7

Step 7: Install Pending Windows Updates

  1. Settings then Windows Update then Check for updates.
  2. Open Advanced options then Optional updates and install anything listed there too.
  3. Reboot and retest. If updates will not install: fix Windows 11 update errors.
Did it work?No, go to Step 8

Step 8: Roll Back With a Restore Point

If the error started right after you ran a cleanup utility or installed a driver, rolling back is faster than hunting for the cause.

  1. Press Windows + R, type rstrui.exe, and press Enter.
  2. Pick a restore point dated before the problem started and follow the wizard.
  3. Restore points do not touch your documents, but they do remove programs installed after that date.
  4. If you have none: create a system restore point so the next problem takes five minutes to fix.
Did it work?No, see similar problems

What Not to Do

  • Never download MSVCP140.dll or VCRUNTIME140.dll from a DLL download site. Those sites are a well-known malware delivery route, and a mismatched DLL breaks more apps than it fixes.
  • Don't copy the DLL from another PC into System32 or the app folder. Version mismatches cause crashes that are harder to diagnose later.
  • Don't register it with regsvr32. These are not COM components, so the command fails and changes nothing.

Still Not Working?

If both redistributables are installed and repaired, the app verifies clean, and SFC reports no problems, create a new local user account (Settings then Accounts then Other users then Add account) and try the app there. If it works, your user profile is damaged; move your data to the new profile.

If it fails for every user and every app, do a repair install that keeps your files: reinstall Windows without losing data.

Related: fix the Microsoft Store not working.

Why this happens

You double-click a program or game and get "The code execution cannot proceed because MSVCP140.dll was not found" or "VCRUNTIME140.dll is missing from your computer", and the app refuses to launch.

Every one of these files (MSVCP140.dll, VCRUNTIME140.dll, VCRUNTIME140_1.dll, MSVCP140_1.dll, MSVCP140_2.dll) belongs to the Microsoft Visual C++ 2015-2022 Redistributable, a shared runtime that thousands of programs are built against. The app itself is usually fine. The runtime it depends on is absent, the wrong architecture (x86 vs x64), or damaged.

Windows does not ship every runtime version by default. A fresh Windows install, a "cleanup" tool that removed "unused" components, or an antivirus quarantine are the usual reasons it goes missing.

App opens and then closes with no DLL message? See fix an app crashing or not opening. Error code 0xc0000142 instead? That one has its own fix: application error 0xc0000142.