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 error | What it belongs to | Fix |
|---|---|---|
| vcruntime140.dll, vcruntime140_1.dll, msvcp140.dll, mfc140u.dll | Microsoft Visual C++ Redistributable | Step 2 |
| d3dx9_43.dll, xinput1_3.dll, d3dcompiler_43.dll, xaudio2_7.dll | Older DirectX components (mostly games) | Step 3 |
| mscoree.dll or a message naming .NET | .NET runtime | Step 3 |
| A file named after the program itself | The program’s own files | Step 4 |
| A core Windows file (for example in System32) | Windows | Step 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.
- Open Settings > Apps > Installed apps and search for Visual C++.
- 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.
- 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).
- Download and run both the x64 and the x86 installers. On a PC with an Arm processor, also install the ARM64 package.
- 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.
- Go to Settings > Apps > Installed apps, find the program, click the three-dot menu and choose Modify or Advanced options if available, then Repair.
- If there is no repair option, choose Uninstall, restart, then download a fresh copy from the developer’s own website and install it.
- 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.
- Right-click the Start button and choose Terminal (Admin).
- Type
DISM /Online /Cleanup-Image /RestoreHealthand press Enter. Wait for it to finish; it can take a while. - Type
sfc /scannowand press Enter. - 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.
Related guides
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
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.

