MSVCP140.dll and VCRUNTIME140.dll Missing in Windows 11: How to Fix Them Safely


Last reviewed: November 22, 2026. This MSVCP140 dll missing guide was compared with Microsoft documentation. None were run on a real PC.
In this guide
- What MSVCP140.dll and VCRUNTIME140.dll are
- Why the MSVCP140 dll missing error appears
- Error messages and their first fixes
- Which fix to try first
- Restart and reinstall the app
- Check whether the app is 32-bit or 64-bit
- Repair or reinstall the Visual C++ Redistributable
- Run DISM, SFC and Windows Update
- What to avoid
- Frequently asked questions
- How this guide was checked
- Sources
Quick answer
- MSVCP140.dll and VCRUNTIME140.dll are files from the Microsoft Visual C++ 2015-2022 Redistributable (v14), which many apps install and depend on.
- Start by restarting the PC and reinstalling the app that shows the error.
- If the app still fails, install the latest supported Visual C++ Redistributable from Microsoft, both x64 and x86.
- Run DISM before SFC if system files may be damaged, and install Windows updates.
- Never download single DLL files, copy them into System32, or trust a registry cleaner or "DLL fixer".
What MSVCP140.dll and VCRUNTIME140.dll are
When you see an MSVCP140 dll missing message, the file usually belongs to the Microsoft Visual C++ Redistributable. That package covers Visual Studio 2015 and later. Microsoft packages these as one set of runtime libraries. The 14.x version numbers are why people call them the v14 runtime.
MSVCP140.dll provides standard C++ library code. VCRUNTIME140.dll provides low-level support code that C++ programs call while they run.
Most apps do not carry these libraries in their own folders. Instead, the installer expects the runtime to already be on Windows. A game or utility built with Visual Studio needs the matching runtime to start. So one missing runtime can break several unrelated programs at once.
Support teams often link these file names to the v14 runtime. The Microsoft page used for this guide does not name MSVCP140.dll or VCRUNTIME140.dll. Treat that link as general background, not as something Microsoft states there.
If the message names a different DLL, this guide does not apply. If the message names MSVCR120.dll, that file comes from the older Visual C++ 2013 runtime, so read our guide to MSVCR120.dll missing. If it names d3dx9_43.dll or another older DirectX file, see how to fix D3DX9_43.dll missing. If it names api-ms-win-crt-runtime-l1-1-0.dll, read our Universal C Runtime error guide. For the generic missing-DLL errors that affect other files, read our guide on fixing missing DLL errors in Windows instead.
If the message names Direct3D 10 file instead, such as D3D10_1.dll, D3D10_1Core.dll or D3D10Core.dll, it does not come from the Visual C++ runtime. See the guides to D3D10_1.dll missing, D3D10_1Core.dll errors and D3D10Core.dll errors.
Why the MSVCP140 dll missing error appears
The MSVCP140 dll missing error usually has one of three causes, and each has a different first fix. Work out which one fits before you change anything.
- The runtime is not installed: the app was installed without it, or a program or cleanup tool removed it.
- The runtime is damaged: a failed update or a partial installation left some files broken or missing.
- The architecture does not match: a 32-bit app needs the x86 runtime, even on a 64-bit copy of Windows 11. An x64-only install does not satisfy it.
A fourth cause is a damaged app installation, where the program's own files are incomplete. Reinstalling the app often fixes this without touching Windows.
If Windows blocks the program with a different message, such as "This app can't run on your PC", our guide to fixing this app can't run on your PC covers that prompt. If the program will not open at all and shows error 0xc000007b, see error 0xc000007b. If it closes with an Application Error in Event Viewer, our Event ID 1000 guide shows how to read the faulting module.
If your message is about graphics or games rather than these files, the cause may be different. Our notes on DirectX errors in games cover that separate problem.
Error messages and their first fixes
The table below covers only the two file names in this guide. Match the wording you see, then start with the fix in the last column.
| Message you see | Likely cause | First fix | Why this order |
|---|---|---|---|
| The code execution cannot proceed because MSVCP140.dll was not found. | Runtime missing or the app is incomplete | Restart, then reinstall the app | Costs little and fixes incomplete installs |
| VCRUNTIME140.dll was not found. | Runtime not installed, or wrong architecture | Check whether the app is 32-bit, then install the matching runtime | Architecture decides which installer you need |
| MSVCP140.dll is missing from your computer. | Runtime damaged or removed | Repair or reinstall the Visual C++ Redistributable | Restores the runtime without touching other apps |
| VCRUNTIME140.dll is missing or damaged after an update. | Interrupted install or system file damage | Run DISM, then SFC, then Windows Update | System repair only after simpler fixes fail |
Which fix to try first
Work through the fixes from the least risky to the most involved. Stop as soon as the app starts. Do not jump to system repair tools for an error a reinstall would solve.
- Restart the PC to clear a stuck installer or a half-loaded runtime.
- Reinstall the affected app from its official source.
- Check the app's architecture and install the matching Visual C++ runtime.
- Repair or reinstall the Visual C++ Redistributable from Settings or Microsoft.
- Run DISM, then SFC if system files may be damaged.
- Install Windows updates and restart again.
- Contact the app vendor if none of these steps helps.
Restart and reinstall the app
Begin with a plain restart. Save your work, close the app, restart Windows 11, and open the app again. This clears a stuck installer and any runtime loaded in a bad state.
If the error stays, reinstall the app from its official website or store. Uninstall it first, then install it again from the original file. If leftover folders or settings cause trouble, read our guide on how to uninstall programs completely in Windows. It explains how to remove what the normal uninstaller leaves behind.
Games often show these errors after a failed setup. If the game also crashes right after launch, a reinstall may not be enough. Our guide to fixing game crashes on startup covers the other common causes.
Note
A reinstalled app may still fail if the runtime it needs is missing. Keep going to the architecture check rather than repeating the reinstall.
You should see: the app opens without the file message. If this fails: the runtime is the likely cause, so continue to the architecture check.
Check whether the app is 32-bit or 64-bit
Architecture is the detail most guides skip, and it explains many repeat errors. A 64-bit copy of Windows 11 runs both 32-bit and 64-bit apps. A 32-bit app loads 32-bit runtime files, and the x64 runtime does not supply those. So it can still report VCRUNTIME140.dll as missing after you install only the 64-bit runtime.
To check, open Task Manager while the app is running, select the Details tab, and look at the name column. Many 32-bit apps show "32 bit" next to their name. This is general guidance and not every app shows it. If the column shows nothing, check the app's download page or its system requirements.
When you are unsure, install both runtimes. Our general advice is that installing the x86 and x64 packages side by side covers both kinds of app.
Warning
Install the runtime only from Microsoft's download links listed in this guide. Do not take the installer from a third-party file site.
Repair or reinstall the Visual C++ Redistributable
If the app still fails, the runtime itself may be damaged or missing. Start with the repair option in Windows, if your PC offers it. Microsoft's guide to repairing apps and programs in Windows documents a Repair or Reset option under Advanced options for apps. It does not mention Visual C++ specifically, so the entry may or may not appear for this package. On Windows 10, the installed apps list is under Settings > Apps > Apps & features, as that page describes.
- Open the installed apps list SettingsAppsInstalled apps You should see: a list of installed programs. If this fails: search for Installed apps from the Start menu.
- Find the runtime by searching for "Microsoft Visual C++ 2015-2022 Redistributable". There can be an x64 and an x86 entry. If this fails: if no entry appears, the runtime is probably missing, so go to step 4.
- Open the three-dot menu next to the entry. If Modify or Repair is offered, choose it and follow the prompts. If not, skip to the next step. If this fails: if the repair stops with an error, go to step 4.
- Install the latest supported version using the x64 installer from Microsoft and the x86 installer from Microsoft. Run each one, then restart. You should see: the installer reports success or that the version is already current. If this fails: check the app's architecture in the section above, then install the other runtime.
Which version to install
Microsoft's "latest supported Visual C++ Redistributable downloads" page lists Windows 10 and Windows 11 among the supported systems. It also says the runtime's architecture must match the app's target. That page is written for developers, and it advises contacting the app vendor when you are trying to fix an app. Use it as the reference for which version is current, not as a repair manual.
If the installer says a newer version is already installed, that is normal, not an error. Leave the newer version in place and check the app again. Removing a runtime that other programs use can break them.
Note
Restart after each runtime install, then open the app. You do not need to uninstall the runtime first.
You should see: the app starts, or the installer reports that the runtime is current. If this fails: move on to the system file checks.
Run DISM, SFC and Windows Update
Use these checks only when the app fixes above did not work, or when several unrelated programs show the error. Microsoft advises that you run DISM before SFC, because DISM provides the files required to repair corrupted files. For the full repair order, see our SFC and DISM guide.
Open Windows Terminal or Command Prompt as administrator, then run the DISM command below. It can take several minutes and may appear to pause. Let it finish.
DISM.exe /Online /Cleanup-image /Restorehealth
When DISM finishes, run the system file check in the same window.
sfc /scannow
You should see: a message that Windows Resource Protection found and repaired files, or found no integrity violations. If this fails: restart, run both commands again, and then move to Windows Update.
Next, install all pending updates. Go to SettingsWindows UpdateCheck for updates and install what is offered. Restarts finish many installs, so restart even if Windows does not ask you to. Our guide on fixing Windows Update when it is stuck or failing covers updates that will not finish.
Drivers are a separate topic and rarely cause these two file errors. If you are chasing a crash that began after a driver change, see our notes on updating drivers in Windows 11 instead.
What to avoid
Many sites suggest quick fixes for these errors that create new problems. Avoid these four habits, which we advise against regardless of which Windows version you use.
Warning
Do not download MSVCP140.dll or VCRUNTIME140.dll as single files from "DLL download" sites. A file taken from an unknown source can be malware, or the wrong version for your app. Our advice, not a Microsoft statement.
Do not copy DLL files into System32 or SysWOW64. Copying a file by hand skips the installer. Registering a downloaded DLL with regsvr32 does not make it safe, and regsvr32 errors have their own guide. The file may not match the version the app expects, and it can hide the real cause. If you have already done this, our guide to removing viruses and malware from a Windows PC explains how to check for infection.
Do not use a registry cleaner. Registry edits do not repair a missing runtime, and a cleaner can remove entries that other programs need. Our guide on registry cleaners in Windows 11 explains why they are a poor fix for this problem. To see what a registry scan's error count does and does not tell you, read what a registry scan's error count really means.
Do not run a "DLL fixer" or a general PC cleaner for these errors. Such tools often bundle unwanted software, and they do not know which runtime version your app needs. Cleaner apps that promise DLL fixes are a red flag. If you are considering one, read our notes on PC cleaners for Windows 10 and 11 first, and check potentially unwanted apps in Windows 11 if an installer added toolbars or extra programs.
Frequently asked questions
Is MSVCP140.dll a virus?
No. MSVCP140.dll is normally a legitimate file from the Microsoft Visual C++ runtime. The risk comes from downloading copies of it from unknown websites, which is why this guide advises against that.
Should I install the x86 or x64 runtime?
Install both when you are unsure. A 32-bit app needs the x86 runtime even on 64-bit Windows 11, and a 64-bit app needs the x64 runtime.
Do I need to uninstall the Visual C++ Redistributable first?
No. Install or repair the latest supported version over the existing one, then restart and test the app.
Why does DISM run before SFC?
Microsoft advises running DISM first, because DISM provides the files required to repair corrupted files.
What if the error is about VCRUNTIME140_1.dll?
This guide covers only MSVCP140.dll and VCRUNTIME140.dll. For a different file name, check the app's support page or the generic guide to missing DLL errors. For VCRUNTIME140_1.dll specifically, read our guide to the VCRUNTIME140_1.dll error.
Will reinstalling Windows fix the error?
Usually you do not need to. Try the app reinstall, the runtime repair and the system file checks first. A reset is a last resort and removes your apps.
When should I contact the app vendor?
Contact the vendor if the app keeps failing after a reinstall and runtime install. Also contact them if its requirements list a runtime version you cannot find. Microsoft's developer guidance also points to the vendor in this case.
How this guide was checked
This guide was written from Microsoft's published documentation. Those sources cover the Visual C++ Redistributable, the Repair apps and programs page, the System File Checker guidance and the Windows Update FAQ. The steps describe what those sources say. We did not run them on a real PC for this article, so menu names may differ on your computer.
Sources
- The latest supported Visual C++ Redistributable downloads (Microsoft Learn)
- Visual C++ Redistributable x64 installer from Microsoft
- Visual C++ Redistributable x86 installer from Microsoft
- Repair apps and programs in Windows (Microsoft Support)
- Use the System File Checker tool to repair missing or corrupted system files (Microsoft Support, DISM before SFC guidance)
- Windows Update FAQ (Microsoft Support)
More help: for more guides on Windows problems, visit the PC repair guides homepage.