Fix Windows Web DLL Errors: Step-by-Step Guide
In this article
Windows web DLL errors usually mean a file that Internet Explorer, Edge, or another program relies on is missing, corrupted, or registered incorrectly. The quickest fix is to run the built-in System File Checker and DISM, then re-register the relevant DLLs and update Windows. You do not need to download random DLL files from the internet, and doing so is a common way to make things worse.
What You'll Need
- Administrator access to the PC (you will be opening an elevated Command Prompt).
- A working internet connection for Windows Update and DISM repair.
- The name of the DLL from the error message, if one is shown (for example, mshtml.dll, jscript.dll, or urlmon.dll).
- A recent backup or restore point if you plan to make system-level changes.
Step-by-Step
- Note the exact error and DLL name. Write down the full message, including the DLL filename and any error code. This tells you whether the problem is a missing file, a registration issue, or a dependency problem. If the error appears only in one app, the DLL may belong to that app rather than Windows itself.
- Restart the PC. A simple reboot clears temporary file locks and finishes pending updates. Many DLL errors disappear after a restart because a file was in use during an update.
- Run Windows Update. Open Settings > Windows Update and select Check for updates. Install all available updates, including optional ones, then restart. Web-related DLLs are often patched through cumulative updates.
- Run the System File Checker. Right-click Start, choose Terminal (Admin) or Command Prompt (Admin), and run
sfc /scannow. Wait for it to finish. This scans protected system files and replaces corrupted ones from a cached copy. If it reports it cannot fix some files, continue to the next step. - Run DISM to repair the component store. In the same elevated window, run
DISM /Online /Cleanup-Image /RestoreHealth. This repairs the image SFC uses as its source. Run SFC again afterward if DISM made repairs. - Re-register the affected DLL. In the elevated Command Prompt, run
regsvr32 /u filename.dllto unregister, thenregsvr32 filename.dllto re-register, replacing filename.dll with the exact name from the error. For 32-bit DLLs on a 64-bit system, use the 32-bit regsvr32 located inC:\Windows\SysWOW64. You should see a success message; if you see an error, note the code. - Check the app or browser. If the error comes from a specific browser, update it to the latest version or reinstall it from the official source. For Edge, use Settings > Apps > Installed apps > Microsoft Edge > Modify > Repair. For other browsers, download the installer from the vendor's official site.
- Run a malware scan. Use Windows Security (Settings > Privacy & security > Windows Security > Virus & threat protection) to run a full scan. Malware sometimes replaces or deletes DLLs. Remove anything found and restart.
- Use System Restore if the error is recent. Search for Create a restore point, open System Restore, and choose a point from before the error started. This reverts system files and registry settings; it does not affect your personal documents, but it does remove apps and updates installed after the restore point.
- Reset or reinstall the affected component as a last resort. For a browser, a reset to default settings can clear extensions and settings that load bad DLLs. For a Windows feature, use Settings > Apps > Optional features to repair or reinstall the relevant component. Back up important data first.
Common Mistakes
- Downloading DLLs from third-party sites. These files are often outdated, modified, or malicious. Windows DLLs should come from Windows Update, SFC, or the official app installer.
- Running regsvr32 on the wrong DLL. Registering a system DLL that should not be registered, or using the 64-bit regsvr32 on a 32-bit DLL, can cause new errors. Match the DLL name and use the correct regsvr32 version.
- Skipping DISM after SFC. If SFC cannot repair files, DISM is usually the missing step because the local repair source is damaged.
- Ignoring the app context. A DLL error from one program is often that program's problem, not Windows. Reinstalling the app is safer than modifying system files.
- Disabling security tools to "fix" the error. Turning off antivirus or SmartScreen to stop a DLL warning exposes the PC to real threats.
Tips
- Run commands one at a time and read the output. SFC and DISM write a log you can review if repairs fail.
- Create a restore point before making registry or system file changes.
- Keep Windows and your browsers updated; most web DLL errors are fixed by cumulative updates.
- If the error names a DLL you do not recognize, search for it only to identify which program owns it, then repair that program rather than the system.
- Use the 64-bit Command Prompt for 64-bit DLLs and the SysWOW64 version for 32-bit DLLs.
Troubleshooting
If SFC reports "Windows Resource Protection found corrupt files but was unable to fix some of them," run DISM with RestoreHealth, restart, and run SFC again. If DISM fails with an error, check that Windows Update is working and that you have free disk space. If regsvr32 returns an error about the module not being found, verify the DLL path and that the file exists in System32 or SysWOW64. If the error persists only in one browser, reset or reinstall that browser from its official site. If the error appears at startup, check Task Manager > Startup apps and disable recently added entries, then restart. If nothing works, use System Restore or consider a repair install of Windows using the official media creation tool, which keeps your files and most apps.
Frequently Asked Questions
Can I just download the missing DLL?
No. Downloading DLLs from unofficial sites risks malware and version mismatches. Use SFC, DISM, Windows Update, or the official app installer instead.
What does regsvr32 do?
It registers or unregisters a DLL in the Windows registry so programs can find and use it. Use it only on the specific DLL named in the error.
Why does the error come back after a restart?
The underlying cause was not fixed, or an app is replacing the DLL on launch. Check for recent app installs, run a malware scan, and repair the app that triggers the error.
Is it safe to run SFC and DISM?
Yes. Both are official Microsoft tools. They repair system files from trusted sources and do not delete your personal files.
Do I need to reinstall Windows?
Rarely. Try SFC, DISM, re-registering the DLL, updating, and System Restore first. A repair install is a last resort that keeps your files.
What if the DLL belongs to a game or app, not Windows?
Reinstall that app from its official source. Do not copy DLLs between program folders; dependencies and versions must match.