How to Fix Missing DLL Errors in Windows

You open a program or game and Windows says ‘The program can’t start because VCRUNTIME140.dll is missing’ or a similar message. A DLL is a shared file that programs use to run. When one is missing or damaged, the program cannot start. If Windows says a DLL is not valid for Windows, see our Bad Image error 0xc000012f guide. This guide shows the safe ways to fix it, and explains why you should never download a DLL file from a random website. If the program shows an error code such as error 0xc000007b instead of a DLL name, follow that guide. If Windows says "This app can’t run on your PC" instead, see how to fix this app can’t run on your PC.
Common DLL error messages
- The program can’t start because MSVCP140.dll is missing from your computer
- VCRUNTIME140.dll was not found
- MSVCR120.dll is missing
- api-ms-win-crt-runtime-l1-1-0.dll is missing
- d3dx9_43.dll or xinput1_3.dll is missing (usually older games)
| DLL name starts with | Comes from | Go to |
|---|---|---|
| VCRUNTIME140, MSVCP140, vcruntime140_1 | Visual C++ 2015 to 2022 Redistributable | Step 3 |
| MSVCR120, MSVCR110 | Visual C++ 2013 or 2012 | Step 3 |
| MSVCR100, MSVCP100 | Visual C++ 2010 | Step 3 |
| api-ms-win-crt | Windows update (Universal C Runtime) | Step 7 |
| d3dx9, d3dx10, d3dx11, xinput1_3 | DirectX End-User Runtime (older games) | Step 4 |
| Anything else, or the program’s own name | The program itself | Step 2 |
Safety first
Searching for the DLL name often leads to ‘DLL download’ websites. Do not use them. A registry cleaner will not fix a missing runtime either. Learn why a registry cleaner cannot fix this kind of error. The file may be the wrong version, may not fix the problem, or may contain malware. Fix the cause using the steps below instead.
Step-by-step: fix the DLL error
Step 1: Note the exact DLL name and the program
Write down the full DLL file name and which program shows the error. The table above tells you which package to reinstall.
Step 2: Restart and repair or reinstall the program
Restart the PC and try again. Then open Settings > Apps > Installed apps, select the three dots next to the program and choose Modify or Advanced options (the choices differ by program), then use Repair if it is offered. If not, uninstall the program and install it again from the official source. You should see the program open without the message. If the same DLL error returns, go to Step 3.
Step 3: Install the Microsoft Visual C++ Redistributable
Many programs and games need these runtime packages. MSVCP140.dll and VCRUNTIME140.dll errors have their own guide. If the message names VCRUNTIME140_1.dll, read our VCRUNTIME140_1.dll fix guide.
- VCRUNTIME140.dll and MSVCP140.dll: install the latest supported Microsoft Visual C++ Redistributable (the 2015-2022 package).
- MSVCR120.dll: Visual C++ 2013. MSVCR110.dll: Visual C++ 2012.
- MSVCR100.dll and MSVCP100.dll: Visual C++ 2010.
- On a 64-bit PC, install both the x64 and x86 versions, because some programs are 32-bit.
Download them only from Microsoft’s own website, then restart. You should see the packages listed in Installed apps as Microsoft Visual C++ Redistributable. If the installer says a newer version is already installed, choose Repair in its window.
Step 4: Install the DirectX runtime for older games
Files such as d3dx9_43.dll and xinput1_3.dll come from the DirectX End-User Runtime. Install it from Microsoft’s website if an older game asks for them. Windows 10 and 11 already include current DirectX, so this installs only the older helper files.
For Direct3D 10 files such as D3D10_1.dll, D3D10_1Core.dll or D3D10Core.dll, which Windows supplies itself, see the guides to D3D10_1.dll missing, D3D10_1Core.dll errors and D3D10Core.dll errors.
Step 5: Repair Windows system files
Open Terminal (Admin) and run these in order:
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow
Restart the PC afterwards. You should see a message that Windows found no problems or repaired files. See how to repair Windows system files for what each result means.
Step 6: Check your antivirus quarantine
Antivirus software sometimes quarantines a DLL that a program needs. Open Windows Security > Virus & threat protection > Protection history and restore the file only if it belongs to a program you trust. If it came with cracked or pirated software, leave it quarantined, because those files commonly carry malware. If Windows Security shows as turned off, or will not turn on, see Windows Security turned off or won’t turn on: how to fix it.
Step 7: Install Windows updates
Some DLLs, such as the api-ms-win-crt files, are delivered through Windows updates. If the message names api-ms-win-crt-runtime-l1-1-0.dll, read our guide to that Universal C Runtime error. Open Settings > Windows Update and install everything, then restart. If updates fail, see how to fix Windows Update stuck or failing.
Step 8: Use System Restore
If the error started after a recent change, search for Create a restore point, choose System Restore and go back to a date before the problem. It does not delete your own files, but it removes programs and drivers installed after that date. See how to use System Restore.
If the error keeps coming back
A DLL that keeps disappearing, or errors from many programs at once, can point to malware or a failing drive. Run a scan with our malware removal guide and check the drive’s health with this drive health guide. If the message says class not registered instead, it is a related COM error; read our class not registered error on Windows 11 guide.
More help
For more Windows fixes, search by symptom in the PC repair guides on PC Repair Atlas.
FAQ
Is it safe to download a DLL file from the internet? No. Install the official package that contains it, such as the Visual C++ Redistributable. Registering an unknown file with regsvr32 is not a fix either; see our guide to the regsvr32 error.
Do I need both the x64 and x86 Visual C++ packages? On a 64-bit PC, yes. Install both, since some programs are 32-bit.
Can a DLL error cause a blue screen? Usually it only stops a program, but damaged system files can contribute to crashes. See blue screen errors.