NS_E_PLUGIN_ERROR_REPORTED (0XC00D157D) Fix: Plug-in Error in Windows Media Player
This error means a plug-in in Windows Media Player crashed. Usually caused by a corrupt codec pack or old plug-in. Fix: reset the plug-in or remove Codec packs.
Quick answer for advanced users: The plug-in hosting process (wmpshell.dll) crashed. Reset plug-ins via WMP settings or remove third-party codec packs like K-Lite or CCCP that hook into WMP.
This error — NS_E_PLUGIN_ERROR_REPORTED with code 0XC00D157D — is one of those head-scratchers that pops up when Windows Media Player tries to play a file and a registered plug-in goes sideways. Most of the time it's a codec pack that got corrupted or conflicts with another codec. Had a client last month whose entire playlist died after updating a codec pack. The player would load, show the file name, then throw this error. The file itself was fine — VLC played it no problem. The issue is WMP's plug-in architecture: it loads codecs as plug-ins, and when one fails, the player errors out instead of falling back.
What Triggers This Error
You'll usually see 0XC00D157D after installing or updating a codec pack (K-Lite, CCCP, Windows Essentials Codec Pack), or after a Windows update that changes media handling. Older plug-ins designed for Windows 7 can break on Windows 10 or 11. Also happens if a plug-in's DLL gets quarantined by antivirus — had that happen with an aggressive Avast setting.
Fix Steps (Start Here)
- Reset the plug-in cache. Close WMP. Press Win + R, type
regsvr32 wmpshell.dll, hit Enter. You'll get a success popup. Then runregsvr32 wmp.dll. This re-registers the core plug-in components. - Disable third-party plug-ins. Open WMP. Go to Tools (if you don't see the menu bar, press Ctrl + M) → Options → Plug-ins tab. Uncheck everything that's not a Microsoft plug-in. Click Apply, try playing the file again.
- Remove codec packs. If disabling plug-ins fixed it, uninstall all codec packs via Settings → Apps → Installed apps. Reboot. For most users, you don't need a codec pack — Windows 10/11 handles H.264 and AAC natively.
- Run the WMP troubleshooter. Not my favorite tool, but sometimes it helps. Go to Settings → Update & Security → Troubleshoot → Additional troubleshooters → Windows Media Player. Run it, apply any fixes.
Alternative Fixes (If Main One Fails)
If resetting plug-ins doesn't cut it, dig into the registry. Warning: back up your registry first. Open Registry Editor (regedit), navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer\Player\Plugins. Export the key as a backup, then delete any subkeys that aren't Microsoft ones. Reboot. This nukes all third-party plug-in entries. Had a case where a half-uninstalled codec left a registry entry that kept causing the error — removing it fixed it.
Another option: use Process Monitor from Sysinternals to see which DLL fails. Filter on wmpshell.exe, look for NAME NOT FOUND or ACCESS DENIED entries. That'll tell you exactly which plug-in is the culprit.
Prevention Tip
Stick with Microsoft's default codecs. If you must have extras, use LAV Filters in standalone mode (disable them from WMP plug-ins). And always create a system restore point before installing any codec pack — saved my tail more times than I can count.
Real talk: this error is almost always a codec pack problem. If you've got a client insisting on K-Lite, set them up with MPC-HC instead. It can use LAV Filters without touching WMP, and you'll never see 0XC00D157D again.
Was this solution helpful?