Добавить в корзинуПозвонить
Найти в Дзене

The code execution cannot proceed because msvcp140 dll was not found как исправить

The "The code execution cannot proceed because msvcp140.dll was not found" error indicates that a program you're trying to run requires the Microsoft Visual C++ Redistributable package, but it's either missing or corrupted on your system. The msvcp140.dll file is a component of this package. Here's how to fix it: This is the most common and effective solution. If you already have the Visual C++ Redistributable installed, it might be corrupted. Try repairing it. This method is generally not recommended because it can lead to other problems, but it might work as a temporary solution. Why this is less recommended: In some cases, the program itself might be corrupted or improperly installed. Reinstalling the program can resolve the issue. System file corruption can sometimes lead to DLL errors. Run the System File Checker (SFC). Although less likely, ensuring your Windows operating system is up-to-date can resolve underlying system issues. By following these steps, you should be able to re
Оглавление

The "The code execution cannot proceed because msvcp140.dll was not found" error indicates that a program you're trying to run requires the Microsoft Visual C++ Redistributable package, but it's either missing or corrupted on your system. The msvcp140.dll file is a component of this package. Here's how to fix it:

The code execution cannot proceed because msvcp140.dll was not found: How to fix

I. Download and Install the Visual C++ Redistributable Package

This is the most common and effective solution.

  1. Determine your system architecture (32-bit or 64-bit):Press Win + Pause/Break keys (or search for "System Information" in the Start menu).
    Look for "System type." It will say either "32-bit Operating System" or "64-bit Operating System."
  2. Download the appropriate Visual C++ Redistributable:Go to the official Microsoft download page for the latest supported Visual C++ Redistributable: https://learn.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170 Important: Download both x86 and x64 versions, regardless of your system architecture. Some applications may require the 32-bit version even on a 64-bit system.
    Under the "Latest supported Visual C++ Redistributable downloads" section, find the link for your architecture (x86 is 32-bit, x64 is 64-bit, and ARM64 is for ARM-based systems).
    Download VC_redist.x86.exe and VC_redist.x64.exe.
  3. Install the Redistributable packages:Run the downloaded .exe files (VC_redist.x86.exe and VC_redist.x64.exe).
    Follow the on-screen instructions to install the packages.
    Important: If you encounter an error during installation, try repairing the installation (if the option is available) or uninstalling any previous versions of the Visual C++ Redistributable and then reinstalling the latest versions.
  4. Restart your computer: After installation, restart your computer to ensure the changes take effect.

II. Repair the Visual C++ Redistributable Package

If you already have the Visual C++ Redistributable installed, it might be corrupted. Try repairing it.

  1. Open Programs and Features:Press Win + R keys, type appwiz.cpl, and press Enter.
  2. Find Microsoft Visual C++ Redistributable:Locate the "Microsoft Visual C++ Redistributable" entries in the list. Look for the versions that include "140" or a similar version number.
  3. Repair the installation:Right-click on each "Microsoft Visual C++ Redistributable" entry and select "Change" or "Repair."
    Follow the on-screen instructions to repair the installation.
  4. Restart your computer: After repairing, restart your computer.

This method is generally not recommended because it can lead to other problems, but it might work as a temporary solution.

  1. Find msvcp140.dll:If you have another computer with the same operating system (and architecture) where the program works correctly, you can copy the msvcp140.dll file from that computer.
    Alternatively, after installing the Visual C++ Redistributable package (as described above), you can find the msvcp140.dll file in the C:\Windows\System32 (for 32-bit systems) or C:\Windows\SysWOW64 (for 64-bit systems) directory.
  2. Copy the DLL to the application's directory:Copy the msvcp140.dll file to the directory where the program that's giving the error is located.
  3. Restart the application: Try running the application again.

Why this is less recommended:

  • It might not fix the root cause of the problem.
  • It might create compatibility issues with other applications.
  • It might not be a proper solution from a licensing perspective.

IV. Reinstall the Program

In some cases, the program itself might be corrupted or improperly installed. Reinstalling the program can resolve the issue.

  1. Uninstall the program: Use the "Programs and Features" control panel to uninstall the program that's giving the error.
  2. Download the latest version: Download the latest version of the program from the official website.
  3. Reinstall the program: Follow the on-screen instructions to reinstall the program.
  4. Restart your computer: Restart your computer after installation.

V. Check System Files

System file corruption can sometimes lead to DLL errors. Run the System File Checker (SFC).

  1. Open Command Prompt as Administrator:Type cmd in the Start menu search box.
    Right-click on "Command Prompt" and select "Run as administrator."
  2. Run SFC:Type sfc /scannow and press Enter.
    Wait for the process to complete. It may take some time.
  3. Restart your computer: Restart your computer after the scan is finished.

VI. Consider Updating Windows

Although less likely, ensuring your Windows operating system is up-to-date can resolve underlying system issues.

  1. Check for Updates:Go to Start Menu > Settings > Update & Security > Windows Update.
    Click "Check for updates."
    Install any available updates.
  2. Restart: Restart your computer after the updates are installed.

By following these steps, you should be able to resolve the "The code execution cannot proceed because msvcp140.dll was not found" error. Remember to prioritize downloading the Visual C++ Redistributable from the official Microsoft website for security reasons.