How to Fix the ‘msvcp140.dll is Missing’ Error

The dreaded ‘msvcp140.dll is missing’ error can halt your program in its tracks, preventing you from running essential applications and games. This error typically arises when the Visual C++ Redistributable Packages, which contain the necessary DLL files for running programs developed using Microsoft Visual Studio, are either missing, corrupted, or an outdated version. Let’s explore several methods to resolve this issue.

Understanding the ‘msvcp140.dll is Missing’ Error

Before diving into the solutions, it’s helpful to understand what this error signifies. ‘msvcp140.dll’ is a component of the Microsoft Visual C++ Redistributable. Applications built with Visual Studio often rely on these redistributable packages to function correctly. When the DLL file is absent or inaccessible, the application fails to launch, triggering the error message. This issue commonly surfaces after a Windows update, a program installation, or due to file corruption.

Solutions to Fix the ‘msvcp140.dll is Missing’ Error

Here are several effective solutions to resolve the ‘msvcp140.dll is missing’ error:

1. Repair or Reinstall Microsoft Visual C++ Redistributable Packages

This is usually the most effective solution. Follow these steps:

  • Identify Installed Versions: Go to Control Panel > Programs > Programs and Features. Look for Microsoft Visual C++ Redistributable entries.
  • Repair: Right-click each entry and select Change, then Repair. If the Repair option isn’t available, proceed to uninstalling and reinstalling.
  • Uninstall: If repair doesn’t work, uninstall each Visual C++ Redistributable version one by one.
  • Reinstall: Visit the official Microsoft website and download the latest Visual C++ Redistributable Packages. Make sure to download both x86 and x64 versions, even if you have a 64-bit operating system, as some applications might require the 32-bit version.
  • Run the Installers: Execute the downloaded files and follow the on-screen instructions to install the packages. Restart your computer after installation.

2. Copy the DLL File from Another Computer

Warning: This method is not recommended for security reasons, as you could introduce a malicious file into your system. Proceed with extreme caution and only if you trust the source computer.

  • Locate the DLL: Find a computer where the ‘msvcp140.dll’ file is present (usually in C:\Windows\System32 or C:\Windows\SysWOW64).
  • Copy the File: Copy the ‘msvcp140.dll’ file to a USB drive or network location.
  • Paste into System Folders: On the affected computer, paste the file into both C:\Windows\System32 and C:\Windows\SysWOW64.
  • Register the DLL: Open Command Prompt as administrator. Type regsvr32 msvcp140.dll and press Enter. This registers the DLL with the system.
  • Restart: Restart your computer.

3. Run System File Checker (SFC)

System File Checker (SFC) is a utility in Windows that allows users to scan for and restore corrupt Windows system files. Follow these steps:

  • Open Command Prompt as Administrator: Search for “cmd” in the Start menu, right-click, and select “Run as administrator.”
  • Run SFC: Type sfc /scannow and press Enter. The scan will begin and might take some time to complete.
  • Follow Instructions: If SFC finds any errors, it will attempt to repair them automatically. Follow any on-screen prompts.
  • Restart: Restart your computer after the scan is complete.

4. Update Windows

Sometimes, missing DLL files are resolved by updating the operating system. Updates often include fixes and updated versions of system files.

  • Go to Settings: Click the Start button, then click the gear icon to open the Settings app.
  • Update & Security: Select Update & Security.
  • Check for Updates: Click the Check for updates button. Windows will automatically download and install any available updates.
  • Restart: Restart your computer after the updates are installed.

5. Reinstall the Problematic Application

If the error only occurs when running a specific application, reinstalling that application might fix the issue. The installation process should restore any missing or corrupted files required by the application.

  • Uninstall the Application: Go to Control Panel > Programs > Programs and Features. Find the application, right-click, and select Uninstall.
  • Download the Installer: Download the latest version of the application from the official website.
  • Reinstall: Run the installer and follow the on-screen instructions. Restart your computer after installation.

6. Perform a Clean Boot

A clean boot starts Windows with a minimal set of drivers and startup programs. This can help identify if a background program is interfering with the required DLL file.

  • Open System Configuration: Press Windows Key + R, type msconfig, and press Enter.
  • Go to Services Tab: Click the Services tab.
  • Hide All Microsoft Services: Check the box that says “Hide all Microsoft services.”
  • Disable All: Click the Disable all button.
  • Go to Startup Tab: Click the Startup tab and click Open Task Manager.
  • Disable Startup Items: In Task Manager, disable all startup items.
  • Apply and Restart: Close Task Manager, click Apply in System Configuration, and restart your computer.
  • Test the Application: Check if the error persists. If not, re-enable services and startup items one by one to identify the culprit.

Conclusion

The ‘msvcp140.dll is missing’ error can be frustrating, but by systematically applying the solutions outlined above, you can effectively troubleshoot and resolve the issue, restoring your applications and games to proper functionality. Start with the simplest solution—repairing or reinstalling the Visual C++ Redistributable Packages—and work your way through the other methods as needed. Remember to always download software from official sources to minimize the risk of malware and ensure the integrity of your system.