Skip to content
Free Tech Support
Menu

Windows

Missing DLL Error When Opening a Program: Safe Fixes for Windows 11

Written by Free Tech Support Editorial Team · Updated

A missing DLL error in Windows appears when you open a program and get a message like “The code execution cannot proceed because VCRUNTIME140.dll was not found” or “MSVCP140.dll is missing from your computer.” A DLL (dynamic link library) is a shared file that many programs load to do common jobs. When the right version is missing or damaged, the program stops before it opens. The good news: this is almost always fixable in a few minutes, without reinstalling Windows.

First, do not download DLLs from random websites

When you search for the file name, the top results are often “free DLL download” sites. Skip them. A loose DLL can be the wrong version or the wrong architecture, and some of these sites bundle adware or malware. Copying a file into System32 also hides the real cause, which is usually a missing support package. The fixes below use only Microsoft’s own downloads and the program’s own installer. Before downloading anything, make sure the address really belongs to Microsoft or the program’s developer; our guide on how to check if a link is safe shows how.

Also be wary of pop-ups or search ads that claim your PC has “hundreds of DLL errors” and offer a paid “DLL fixer” or a support number to call. Windows does not need those tools, and a real company will never ask you to call a number from a pop-up.

Step 1: Read the error and note the file name

The file name tells you which fix to use. Write it down exactly, then match it in this table:

DLL name in the errorWhat it belongs toFix
vcruntime140.dll, vcruntime140_1.dll, msvcp140.dll, mfc140u.dllMicrosoft Visual C++ RedistributableStep 2
d3dx9_43.dll, xinput1_3.dll, d3dcompiler_43.dll, xaudio2_7.dllOlder DirectX components (mostly games)Step 3
mscoree.dll or a message naming .NET.NET runtimeStep 3
A file named after the program itselfThe program’s own filesStep 4
A core Windows file (for example in System32)WindowsStep 5

Step 2: Install or repair the Visual C++ Redistributable

This is the most common cause. Many programs are built with Microsoft Visual C++ and need its runtime package installed.

  1. Open Settings > Apps > Installed apps and search for Visual C++.
  2. If you see Microsoft Visual C++ 2015-2022 Redistributable (the name may show a later year range), click the three-dot menu next to it, choose Modify, then Repair. Do this for both the x64 and x86 entries.
  3. If it is not listed, or repair does not help, go to Microsoft’s Latest supported Visual C++ Redistributable downloads page on learn.microsoft.com (linked in the sources below).
  4. Download and run both the x64 and the x86 installers. On a PC with an Arm processor, also install the ARM64 package.
  5. Restart the PC and try the program again.

Having several older Visual C++ versions installed (2008, 2010, 2013) is normal. Different programs need different versions, so leave them in place. For a deeper walk-through of the most common file, see our guide to fixing msvcp140.dll is missing.

Step 3: Install DirectX or .NET runtimes

DirectX files (games and older media apps): Windows 11 includes current DirectX, but many older games still look for files from the legacy DirectX 9 era. Search Microsoft’s download site for the DirectX End-User Runtime Web Installer, run it, and restart. It adds the missing legacy files without replacing your current DirectX.

Before that, check the game’s install folder for a folder called _CommonRedist or Redist. Games often ship the exact DirectX and Visual C++ installers they need there. Your game launcher’s Verify or Repair files option does the same job.

.NET files: If the error mentions .NET or a specific .NET version, the program usually tells you which version it needs and offers a link to Microsoft’s .NET download page. For older programs that need .NET Framework 3.5, open the Start menu, type Turn Windows features on or off, tick .NET Framework 3.5, and click OK.

Step 4: Repair or reinstall the program

If the missing file belongs to the program itself, its installation is damaged. Antivirus software sometimes quarantines one of a program’s files by mistake.

  1. Go to Settings > Apps > Installed apps, find the program, click the three-dot menu and choose Modify or Advanced options if available, then Repair.
  2. If there is no repair option, choose Uninstall, restart, then download a fresh copy from the developer’s own website and install it.
  3. Check Windows Security > Virus & threat protection > Protection history to see whether a file was quarantined. Only restore it if you are certain the program is legitimate. Our guide on antivirus blocking a trusted program explains how to do that safely.

If the program installs but still refuses to start, the steps in program won’t open after installing cover other causes.

Step 5: Repair Windows system files

When the error names a core Windows file, or several programs fail at once, let Windows check itself.

  1. Right-click the Start button and choose Terminal (Admin).
  2. Type DISM /Online /Cleanup-Image /RestoreHealth and press Enter. Wait for it to finish; it can take a while.
  3. Type sfc /scannow and press Enter.
  4. Restart when both are done.

If the error started right after an update or a new install, System Restore can take Windows back to a point before the change.

Still on Windows 10?

The same fixes work on Windows 10; the app list is under Settings > Apps > Apps & features. Keep in mind that Windows 10 reached end of support on 14 October 2025. It only gets security fixes if the PC is enrolled in consumer Extended Security Updates, which run until 12 October 2027, and newer software may stop supporting it. See Windows 10 end of support: what to do.

When to get more help

If none of these steps work, contact the program’s developer through their official support site and include the exact error message. For Windows itself, use Microsoft’s support site. This is an independent guide and is not affiliated with Microsoft.

Keep a copy of the exact error text: our guide on how to take a screenshot on Windows 11 shows the quickest shortcuts.

More help for programs that will not start: uninstall a stubborn program, run an old program in compatibility mode and this app can’t run on your PC. You can also browse every guide in the Windows section.

Frequently asked questions

Is it safe to download a DLL file from a DLL download website?

No. Those files can be the wrong version, outdated or bundled with malware, and copying one into System32 rarely fixes the real problem. Install the full runtime package from Microsoft or reinstall the program that needs the file.

Why do I need both the x64 and x86 Visual C++ packages on 64-bit Windows?

Many programs are still 32-bit and look for the x86 version of the runtime, even on a 64-bit PC. Installing both versions side by side is normal and covers both kinds of program.

The DLL file is in System32 but I still get the error. Why?

The file may be damaged, the wrong version, or the wrong architecture (32-bit programs use C:\Windows\SysWOW64). Repairing the Visual C++ package and running sfc /scannow usually sorts this out.

A game says a DLL is missing. Where do I get it?

Check the game's install folder for a _CommonRedist or Redist folder and run the installers inside, or use the verify or repair files option in your game launcher. Older games often need the DirectX End-User Runtime from Microsoft.

Sources

FT

Free Tech Support Editorial Team

Editorial team

The Free Tech Support editors write and update these guides from the official documentation of Microsoft, Apple, Google and device makers. We are an independent site with no phone line and no paid support service.

Related guides

A computer repair workbench with a desktop PC opened up for troubleshooting
Windows How to Boot Into Safe Mode in Windows 11, Even When Windows Won't Start Boot into Safe Mode in Windows 11 from Settings, the sign-in screen, msconfig or the recovery screen when Windows will not start, and how to get back out again. October 16, 2026
385 mm
Windows How to Reset Windows 11 Without Losing Your Files Reset Windows 11 without losing files: back up first, choose Keep my files, pick cloud or local reinstall, and know which apps and settings to set up again. October 15, 2026
299 mm
Software & Apps MSVCP140.dll Missing? How to Fix the Error in Windows 11 and 10 Seeing "MSVCP140.dll is missing"? Install or repair Microsoft's free Visual C++ Redistributable from Microsoft's own site, and avoid risky DLL download pages. October 14, 2026
Old computers and monitors stacked for electronics recycling
Windows Windows 10 End of Support: What to Do Now, Step by Step Windows 10 end of support: what to do now. Check if your PC can get Windows 11 free, back up first, consider ESU or alternatives, and avoid expiry scams. October 14, 2026
253 mm
Software & Apps Program Won't Open After Install: How to Find the Cause and Fix It Installed a program but it won't open? Restart, check Task Manager, run as admin, read the error in Reliability Monitor, repair it, and add missing runtimes. October 14, 2026
A repair workbench with tools, a multimeter and spare parts
Windows How to Transfer Files From an Old PC to a New PC (Windows 10 and 11) How to transfer files from an old PC to a new PC: Windows Backup, an external drive or OneDrive, what does not move automatically, and a checklist first. October 14, 2026