1. Home
  2. Windows Tips
  3. Code execution cannot proceed msvcp140 dll was not found windows 10

Fix “MSVCP140.dll Not Found” Error on Windows 10

DLL files are small but exceptionally important files that apps on Windows 10 need to run. If these files are absent, or they’ve been corrupted, the app that needs them to run may become unstable, or it may not open at all. Fixing them isn’t always simple because the files can’t be installed like an app. They’re part of a runtime or a library and aren’t distributed individually.

Fix “code execution cannot proceed MSVCP140.dll was not found”

If you’re trying to open an app and you see the following error message, there are several things you can try to fix it.

Error message

The code execution cannot proceed because C:\Program Files\Common Files\Microsoft Shared\ClickToRun\MSVCP140.dll was not found. Reinstalling the program may fix this problem

Before you proceed though, take note of which app you’re trying to open when you get the above error message.

1. Re-register DLL files

The error is basically a DLL file that is either missing or that the app is unable to find. In many cases, re-registring the DLL file can fix the problem.

  1. Open File Explorer and navigate to the path given in the error message.
  2. Look for the DLL file i.e., MSVCP140.dll.
  3. Hold down the Shift key and right-click the DLL file.
  4. From the context menu, select Copy as Path.
  5. Open Command Prompt with admin rights.
  6. Run the following command and replace the “path and filename of doll” with the path to the DLL file that you copied.
regsvr32 /u "path & filename of dll"
  1. Restart your system and run the app again.

2. Install/update Microsoft Visual C++ Redistributable Package

If the MSVCP.dll file isn’t present at the path given in the error message, the previous method won’t work. Instead, what you need to do is make sure you have Microsoft Visual C++ Redistributable Package installed, and that it’s up-to-date.

  1. Visit the official Microsoft Visual C++ Redistributable Package distribution page.
  2. Expand the Other Tools and Frameworks section.
  3. Download the latest version of the redistribution package.
  4. Run the file and allow it to install.
  5. Once the installation is complete, run the app you were trying to open before and it should open.

3. Uninstall and reinstall Microsoft Visual C++ Redistributable Package

It is possible that you already have Microsoft Visual C++ Redistributable Package installed, but it is corrupted.

  1. Open Control Panel.
  2. Go to Programs>Uninstall a program.
  3. Look for Microsoft Visual C++ Redistributable Package, select it, and click Uninstall.
  4. Once Microsoft Visual C++ Redistributable Package has been uninstalled, visit the Microsoft Visual C++ Redistributable Package page, and download the latest version.
  5. Install it, and restart the system.
  6. Launch the app you were trying to open before, and it will open.

4. Reinstall the app

Installing and updating Microsoft Visual C++ Redistributable Package and re-registering the DLL file won’t work if the app that you’re trying to open is corrupt. This can happen during updates or if you get a BSOD or the app crashes while it’s in use.

  1. Uninstall the app that is giving the error; open Control Panel and go to Programs>Uninstall a program.
  2. Look for the app, select it, and click Uninstall.
  3. Once the app has been uninstalled, download it again.
  4. Install the app, and restart the system.
  5. Run the app and it will open.

Conclusion

There is no telling what might cause problems with a DLL file but these files and any errors related to them will not result in data loss. They do indicate a corruption in the installation of either a distributable package or library or an app itself. If you have to fix the error over and over i.e., the DLL file keeps going missing or de-registering, it likely has to do with something that is corrupting it e.g., an update that’s failing to install. Examine what is running or being installed on your system and remove anything that tampers with libraries etc.

3 Comments

  1. Thank you very much for these tips. I have been having these bad image and .dll on my laptop for so long I could barely use any app. Followed the instructions and got it to work with the second option which was downloading the visual ++. Merry Xmas

  2. I have had this issue, but found a solution. You may have mentioned in your write up, but i’ll comment the details to help anyone in need.

    I had the same issue, and I had tried reinstalling the 2015 Visual C++ Redistributable Packages, with no success.

    SOLVED – I fixed the issue with a download of the full Visual C++ Redistributable Packages from 2005 up to present date. I won’t link the website here, but simply search in your browser for ”Visual C++ Redistributable Runtimes All-in-One”

    Uninstall all of the Visual C++ Redistributable Packages using settings > Apps and Features – before installing the new packages.

    I managed to download a .zip file with an easy setup executable and this fixed my issue.

    Hope this helps