MSXML4 DLL Not Found or Missing: How to Fix on Windows
In this article
MSXML4 DLL errors usually mean the Microsoft XML Core Services 4.0 runtime is not installed, is damaged, or is registered incorrectly. The safest fix is to install the official Microsoft MSXML 4.0 Service Pack 3 package from Microsoft's Download Center, then restart the app. Do not download the DLL from a third-party DLL site: those files are often outdated, modified, or bundled with unwanted software, and dropping a random DLL into System32 can break other programs that rely on a properly registered COM component.
What You'll Need
- A Windows PC with administrator rights, because installing a system runtime and registering a DLL requires elevation.
- The official Microsoft MSXML 4.0 Service Pack 3 installer (msxml4.msi) from Microsoft's Download Center. If Microsoft's page no longer offers it, use the version bundled with your application's own installer or contact the software vendor.
- The name of the application that shows the error, so you can test it after each fix.
- A restart planned, since DLL registration and runtime installation often need one to take effect.
Step-by-Step
- Identify the exact error and the app that triggers it. Note whether the message says msxml4.dll is missing, cannot be found, or failed to register. Check whether it appears when opening one specific program, during Windows startup, or when a website or installer runs. This tells you whether you need the runtime for one app or system-wide. Menu labels and dialog wording can differ slightly by Windows version and language, so read the message rather than relying on exact phrasing.
- Close the affected app and any installers. Installing a runtime while the program that needs it is running can leave files locked. Save your work and close the program completely, including any tray icon.
- Install the official MSXML 4.0 Service Pack 3 package. Download msxml4.msi from Microsoft's Download Center, right-click the file and choose Run as administrator, then follow the installer. If you already have it installed, run the installer again and choose the repair option if offered; otherwise uninstall it first through Settings > Apps > Installed apps (called Apps & features on older Windows 10 builds), then reinstall. Restart Windows when prompted.
- Test the application. Open the program that showed the error. If it launches normally, you are done. If the same message appears, continue to the next step.
- Register the DLL manually. Open File Explorer, go to C:\Windows\SysWOW64 on 64-bit Windows (or C:\Windows\System32 on 32-bit Windows), and confirm msxml4.dll exists. If it does, open Start, type cmd, right-click Command Prompt and choose Run as administrator. On 64-bit Windows run:
regsvr32 C:\Windows\SysWOW64\msxml4.dll. On 32-bit Windows run:regsvr32 C:\Windows\System32\msxml4.dll. Press Enter and look for a success message. If registration fails, note the error text before continuing. - Check for a 32-bit versus 64-bit mismatch. MSXML 4.0 is an older component and many applications that need it are 32-bit. On 64-bit Windows, a 32-bit app looks in SysWOW64, not System32. If the DLL is present in one folder but not the other, reinstall the official package rather than copying the file by hand, because the installer registers the correct COM entries for each architecture.
- Run a system file and component check. Open Command Prompt as administrator and run
sfc /scannow. This scans protected Windows files and repairs corruption where possible. It will not restore a third-party runtime that was never installed, but it can fix damaged system files that interfere with registration. Restart after it finishes. - Reinstall the affected application. If the runtime is installed and registered but the app still fails, uninstall the app, restart, and reinstall it from its official source. Some installers ship their own private copy of MSXML and register it during setup; a partial or interrupted install can leave that step incomplete. Reinstalling from the vendor's official download is the reliable fix.
- Check Windows Update and the app's own updates. Install pending updates through Settings > Windows Update, then check the application's help menu or vendor site for a newer build. Newer versions of some programs no longer depend on MSXML 4.0 at all, which removes the problem permanently.
Common Mistakes
- Downloading msxml4.dll from a DLL aggregator site. These files are unverified and may be the wrong version, modified, or paired with adware. Even a genuine copy will not work correctly unless it is registered, and copying it into the wrong folder (System32 on 64-bit Windows for a 32-bit app) makes the error persist.
- Putting the DLL in the app's folder. Some programs do load a local copy, but MSXML is a COM component that depends on registry entries created by the official installer. A loose file usually does not satisfy those entries.
- Mixing up System32 and SysWOW64. On 64-bit Windows, System32 holds 64-bit files and SysWOW64 holds 32-bit files. Registering the wrong one, or registering a 32-bit DLL with the 64-bit regsvr32, produces confusing errors.
- Skipping the restart. Registration changes often only take effect after a reboot, so testing immediately can make a working fix look like a failure.
- Ignoring the original installer. If the app shipped with its own MSXML setup, running that installer is often more reliable than a standalone download, because it matches the version the app expects.
Tips
- Keep the official installer file somewhere safe so you can repair the runtime later without hunting for it.
- Run installers with Run as administrator even when your account is an administrator; elevation is what allows the COM registration to write to the right registry keys.
- If the error appears only in one user account, test in another account to see whether the problem is profile-specific before changing system files.
- Note the exact error text and any error code before you start. It makes troubleshooting and any vendor support request much faster.
- Avoid registry cleaner tools that claim to fix missing DLLs; they rarely restore a COM component correctly and can remove valid entries.
Troubleshooting
If the installer refuses to run, check that you are using the correct package for your Windows architecture and that your antivirus is not blocking it. If regsvr32 reports that the module was loaded but the entry-point DllRegisterServer was not found, the file is not a valid MSXML 4.0 DLL or is corrupted; reinstall the official package instead of trying to register that file.
If registration succeeds but the app still reports the DLL as missing, the app may be looking in a different location or expecting a different version. Reinstall the app from its official source and let its own installer handle the runtime. If the error appears during Windows startup, check which program is launching at sign-in through Task Manager > Startup apps, and update or remove that program rather than chasing the DLL.
If sfc /scannow finds errors it cannot repair, run it again after a restart and check the CBS log only if you are comfortable reading system logs; otherwise use Windows' built-in troubleshooters under Settings > System > Troubleshooters. As a last resort, a Windows repair install using the official media keeps your files and apps while replacing damaged system components, but back up important data first because any repair carries some risk.
Frequently Asked Questions
Is msxml4.dll safe to download from any website?
No. Only get it from Microsoft's official Download Center or from the installer of the application that needs it. Third-party DLL sites are a common source of outdated files and unwanted software.
Can I just copy msxml4.dll into System32?
Copying the file alone usually does not fix the error because MSXML is a COM component that needs registry entries. Install the official package so the DLL is placed and registered correctly.
Why does the error come back after it seemed fixed?
An app update or a system cleanup may have removed or unregistered the runtime, or the app may be reinstalling an older version. Reinstall the official MSXML 4.0 package and restart.
Do I need MSXML 4.0 on Windows 10 or 11?
Windows includes newer MSXML versions, but some older applications still require MSXML 4.0 specifically. Install it only if an app asks for it; otherwise leave it alone.
What if the official installer is no longer available?
Check the application vendor's support pages or its installation media, which often include the required runtime. If neither is available, contact the vendor for a supported replacement build.
Will reinstalling Windows fix the error?
It can, but it is unnecessary in most cases. Try the official runtime install, registration, and app reinstall first; a repair install is a last resort and should be preceded by a backup.