Windows 0x8007007EMedium

msvcp140.dll Error in Windows: 5 Proven Ways to Fix

This article explains what causes the msvcp140.dll missing error in Windows and offers proven solutions, from a simple redistributable install to manual file replacement.

Updated at February 14, 2026
10-15 min
Easy
FixPedia Team
Применимо к:Windows 10Windows 11Visual C++ Redistributable 2015-2022

What the msvcp140.dll Error Means

The msvcp140.dll is missing error (or "msvcp140.dll is absent") is a Windows system message that appears when attempting to run a program compiled using Microsoft Visual C++ 2015–2022. The msvcp140.dll file is part of the Microsoft Visual C++ Redistributable—a set of runtime libraries required for applications written in C++.

The full error text usually looks like this:

The program can't start because msvcp140.dll is missing from your computer. Try reinstalling the program to fix this problem.

The error occurs at the stage of launching the executable file (.exe) before the program window appears. Symptoms:

  • Double-clicking a program's shortcut displays a dialog box with the message.
  • The program crashes or fails to launch entirely.
  • In some cases, the error may appear when installing other software that depends on this library.

Causes

  1. Visual C++ Redistributable 2015–2022 package is not installed—the program requires the library, but the corresponding version of the package is missing from the system.
  2. Corruption or accidental deletion of the msvcp140.dll file—antivirus software, disk cleanup, or a system error may have deleted or damaged the file.
  3. Version conflict—an outdated version of Visual C++ Redistributable (e.g., only the 2015 version) is installed, but the program requires a newer one (2015–2022).
  4. Antivirus/firewall blocks the file—the security system mistakenly identifies msvcp140.dll as malicious and quarantines it.
  5. Incorrect program installation—the installer failed to unpack or register the necessary dependencies.
  6. Corruption of Windows system files—errors in the registry or system libraries prevent the DLL from loading.

Solution 1: Install Visual C++ Redistributable (Primary Solution)

This is the most reliable and safe method—installing the official package from Microsoft guarantees compatibility and automatic updates.

Step 1: Determine System and Program Architecture

  1. Press Win + R, type msinfo32, and press Enter.
  2. In the "System Information" window, find the System Type entry.
    • If it says x64-based PC—you have 64-bit Windows.
    • If it says x86-based PC—you have 32-bit Windows.
  3. Also check the architecture of the program that shows the error (usually indicated on the developer's website or in the shortcut properties).

Step 2: Download the Official Package

  1. Go to the Microsoft download page:
    Latest supported Visual C++ Redistributable
  2. Find the Visual Studio 2015, 2017, 2019, and 2022 section.
  3. Download both packages (recommended):
    • vc_redist.x86.exe—for 32-bit programs (on any Windows).
    • vc_redist.x64.exe—for 64-bit programs (only on 64-bit Windows).

    ⚠️ Important: If unsure, install both. This will not harm the system.

Step 3: Install the Packages

  1. Run the downloaded installer (e.g., vc_redist.x64.exe).
  2. Click Install (if a UAC prompt appears—agree).
  3. Accept the license agreement and complete the installation.
  4. Repeat for the other package (if you downloaded both).
  5. Restart your computer for changes to take effect completely.

Step 4: Verify

Run the program that previously showed the error. In 90% of cases, this method resolves the issue.

Solution 2: Manual File Replacement (Only if Installing Redistributable Didn't Help)

⚠️ Important: This method is not recommended by Microsoft and may cause issues with updates or compatibility. Use only as a last resort if installing the package is impossible.

Steps:

  1. Download the msvcp140.dll file only from trusted sources (e.g., from the official Microsoft SDK or from another working PC with the same Windows version).
  2. Determine where to copy the file:
    • If the error is in a specific program—copy msvcp140.dll into its executable folder (usually C:\Program Files\... or C:\Program Files (x86)\...).
    • If the error is system-wide—for 64-bit Windows:
      • C:\Windows\System32\—for 64-bit programs.
      • C:\Windows\SysWOW64\—for 32-bit programs. For 32-bit Windows—only C:\Windows\System32\.
  3. After copying, restart your computer.

💡 Tip: After manual replacement, still install the Visual C++ Redistributable (Solution 1) to avoid future issues.

Solution 3: Check System File Integrity

Corruption of Windows system components can interfere with DLL operation. Use built-in utilities:

  1. Open Command Prompt or PowerShell as Administrator (Win+X → "Windows PowerShell (Admin)").
  2. Run the commands sequentially:
    DISM /Online /Cleanup-Image /RestoreHealth
    sfc /scannow
    
    • DISM repairs the Windows image.
    • sfc scans and fixes protected system files.
  3. After completion, restart your computer and test the program.

Solution 4: Reinstall the Problematic Program

If the error occurs only in one program:

  1. Uninstall it via Control Panel → Programs and Features.
  2. Download a fresh copy from the developer's official website.
  3. Install with administrator privileges (right-click the installer → "Run as administrator").
  4. If the installer requires Visual C++ Redistributable—agree to install it.

Solution 5: Update Windows

Microsoft periodically releases updates that include newer versions of Visual C++ libraries.

  1. Open Windows Settings (Win + I).
  2. Go to Update & Security → Windows Update.
  3. Click Check for updates.
  4. Install all available updates, including optional ones.
  5. Restart your computer.

Prevention

To avoid the error recurring:

  • Regularly install Windows updates—they often include Visual C++ library updates.
  • Do not manually delete files from System32 and SysWOW64 folders.
  • Use only official program installers—they automatically check and install dependencies.
  • When installing games/programs that require Visual C++, ensure the redistributable package is already installed (or install it beforehand).
  • Do not download DLL files from dubious websites—this risks virus infection.

F.A.Q.

Why does the msvcp140.dll error occur?
Can I just download msvcp140.dll and place it in the folder?
Which version of Visual C++ Redistributable should I install for msvcp140.dll?
msvcp140.dll error after Windows update — what to do?

Hints

Determine system architecture
Download Visual C++ Redistributable
Install the package
Test the program
FixPedia

Free encyclopedia for fixing errors. Step-by-step guides for Windows, Linux, macOS and more.

© 2026 FixPedia. All materials are available for free.

Made with for the community