So you double-clicked a video or audio file, Windows Media Player opened, and then it flashed that error: 0XC00D11B1. Or maybe it says NS_E_WMP_FILE_OPEN_FAILED. Either way, WMP is telling you it can't open the file. The reason step one works is that the file might be locked by another process or have a corrupted header. Let's walk through this from quickest fix to most involved.
Step 1: The 30-Second Fix — Check the Obvious
Before you touch settings, rule out the dumb stuff. I've seen people spend an hour troubleshooting when the file was on a disconnected USB drive. What's actually happening here is WMP tries to open the file, gets a "file not found" or "access denied" from the OS, and throws 0XC00D11B1.
- Does the file play elsewhere? Try VLC. If VLC plays it, the file is fine and WMP is the problem. If VLC also fails, the file is likely corrupted or has DRM.
- Is the file on a network drive or external disk? Disconnect and reconnect. Map the drive again if needed.
- Is another program holding the file open? A video editor, a sync client like OneDrive, or even a thumbnail generator can lock it. Close everything that might touch it.
- Restart WMP. Close it completely from Task Manager (wmplayer.exe) and reopen. Sometimes it's just a stuck handle.
If that didn't fix it, move on.
Step 2: The 5-Minute Fix — Reset WMP and Check Codecs
What's actually happening here is that WMP's internal state got corrupted, or the codec required for your file isn't registered. The error NS_E_WMP_FILE_OPEN_FAILED often points to a missing or broken codec, especially with MKV, FLV, or HEVC files that WMP doesn't support natively.
Reset Windows Media Player
Microsoft buried this, but it works. The reason it works is it clears the player's library database and re-registers its components.
- Press
Win + R, typecontrol, hit Enter. - Go to Programs > Programs and Features > Turn Windows features on or off.
- Find Media Features, expand it, and uncheck Windows Media Player. Click OK. Reboot.
- Repeat steps 1-2, but this time check the box to re-enable WMP. Reboot again.
That forces Windows to reinstall WMP fresh. It's faster than sfc /scannow and more reliable for this error.
Install the Right Codecs
If you're trying to play an MKV, HEVC, or AV1 file, WMP likely doesn't have the codec. The real fix is to install a codec pack. I recommend K-Lite Codec Pack Standard — it's clean, no adware, and includes everything WMP needs. Skip the "Mega" version; it's overkill and can break things.
After installing, restart WMP and try again. If the error persists, the file might be using a codec that's not supported at all (like some proprietary camera formats). In that case, convert the file with HandBrake to H.264 MP4.
Step 3: The 15-Minute Fix — Permissions, DRM, and System Files
If the first two steps didn't do it, you're dealing with something deeper. What's actually happening here is either the file has DRM protection, the system's media foundation is damaged, or permissions are blocking WMP from reading the file.
Check DRM Protection
Files downloaded from iTunes, Amazon, or some streaming services are wrapped in DRM. WMP will throw 0XC00D11B1 when it can't verify the license. You can't fix that with codecs. You need to play the file in the app that owns the DRM, or remove the DRM with a tool like Requiem (if it's an old iTunes file).
To check if a file is DRM-protected, right-click it, go to Properties, and look for a Details tab. If you see "Protected" set to "Yes", that's your problem.
Fix File Permissions
Sometimes the file is owned by another user account or has restrictive permissions. The reason this happens is files copied from a different PC or downloaded with a weird umask can inherit permissions that block WMP.
- Right-click the file, choose Properties > Security.
- Click Edit, then Add.
- Type
Everyoneand click OK. - Give Everyone Read & execute and Read permissions. Apply.
Try playing again. If it works, you've found the culprit.
Repair Media Foundation and System Files
WMP relies on Media Foundation. If that's broken, you'll get this error for every file. Run these commands in an elevated Command Prompt (Run as Administrator):
sfc /scannow
dism /online /cleanup-image /restorehealth
Then re-register the Media Foundation DLLs:
regsvr32 mf.dll
regsvr32 mfplat.dll
regsvr32 mfreadwrite.dll
regsvr32 wmvcore.dll
Reboot. This fixes a surprising number of 0XC00D11B1 cases where the system files were corrupted by a bad Windows update or a failed driver install.
Check for Third-Party Codec Conflicts
If you installed a codec pack years ago and then installed another one, they can fight. The real fix is to uninstall all third-party codec packs (K-Lite, CCCP, Shark007), reboot, then install only one. I prefer K-Lite because it's actively maintained and doesn't hijack file associations without asking.
When to Give Up on WMP
Honestly, if you've tried all this and it still fails, switch to VLC or MPV. WMP hasn't been meaningfully updated since Windows 7. It doesn't support modern codecs like HEVC or AV1 out of the box, and Microsoft has been deprecating it for years. For 99% of users, VLC plays everything without codec packs or DRM hassles. Keep WMP for legacy DRM files, but don't fight it for everyday playback.
Pro tip: If you must use WMP, set VLC as your default player for everything else. That way you avoid the error entirely for most files.