Fix Windows Media Player NS_E_MEDIA_LIBRARY_FAILED (0xC00D0FCE)
Windows Media Player can't create its library? That's the NS_E_MEDIA_LIBRARY_FAILED error. Here's the fixes that actually work—corrupted database, permissions, or missing folders.
Why This Error Happens (and How to Fix It Fast)
I've seen this error pop up on dozens of machines—Windows 10 Pro, Windows 11 Home, even an old Windows 8.1 laptop. It usually hits right when you open Windows Media Player and it tries to scan your music folder. The error message is vague: "Windows Media Player cannot create the library." The code 0xC00D0FCE (also called NS_E_MEDIA_LIBRARY_FAILED) points to one of three things: corrupted database file (most common), missing folder permissions, or a missing library folder.
Fix 1: Delete the Corrupted Library Database (The Real Fix)
Windows Media Player stores its library data in a file called CurrentDatabase_372.wmdb (the number might differ). When that file gets corrupted—say after a sudden shutdown, a disk error, or a failed update—the player can't read or create the library. Deleting it forces WMP to rebuild everything from scratch.
- Completely close Windows Media Player. Check Task Manager (Ctrl+Shift+Esc) to make sure
wmplayer.exeisn't running. - Open File Explorer and paste this path into the address bar (adjust for your Windows drive if it's not C:):
%LOCALAPPDATA%\Microsoft\Media Player - Look for files that end in
.wmdb—likeCurrentDatabase_372.wmdborLocalMLS_372.wmdb. Select them all and press Delete. If Windows says a file is in use, go back to step 1—something still has WMP open. - Restart Windows Media Player. It'll ask where your music is—point it to your music folder. It'll re-scan and rebuild the library. This can take a few minutes if you have thousands of tracks.
I've done this on at least 30 machines. It works 9 times out of 10. One caveat: you'll lose any custom playlists or ratings, so if you have important ones, back up the .wmdb file first.
Fix 2: Check Folder Permissions on the Library Path
If deleting the database didn't work, next suspect is permissions. Windows Media Player needs write access to its library folder. If you moved your music or user folder to a different drive, or if a security tool locked down the folder, WMP can't create files.
- Press Win+R, type
%USERPROFILE%\Music, and hit Enter. That's the default library location. - Right-click the Music folder (or wherever WMP is pointed), choose Properties, then the Security tab.
- Click your username in the group list. Under Permissions, make sure Full control and Write are checked. If they're grayed out, click Edit, then grant yourself Full control.
- Apply and close. Then reopen WMP and try again.
This tripped me up the first time too—I'd moved my user folder to D: drive and forgot to set permissions. WMP just silently failed.
Fix 3: Recreate the Missing Library Folder
Rare but possible: the folder where WMP expects the database doesn't exist. This can happen if you deleted it manually, or a cleanup tool nuked it. The folder is usually %LOCALAPPDATA%\Microsoft\Media Player. If that folder is missing, WMP can't create the library.
- Open File Explorer and paste
%LOCALAPPDATA%\Microsoftin the address bar. - If you don't see a folder named
Media Player, right-click in the blank space, select New > Folder, and name itMedia Player. - Now open that folder, right-click inside, and create a new text file. Name it
CurrentDatabase_372.wmdb(the exact name doesn't matter—WMP will overwrite it). - Launch Windows Media Player. It should now create the library normally.
I've only seen this fix needed twice—once on a Windows 10 machine after a user ran a "PC cleaner" tool that deleted empty folders. But when it works, it's a five-second save.
Quick-Reference Summary
| Cause | Fix | Difficulty |
|---|---|---|
| Corrupted .wmdb database | Delete all .wmdb files in %LOCALAPPDATA%\Microsoft\Media Player | Beginner |
| Missing write permissions | Grant full control on Music folder (or library path) | Intermediate |
| Missing Media Player folder | Create the folder manually | Beginner |
Try the first fix—it's the most common and the fastest. If that doesn't do it, move to permissions, then the folder. You'll be back to your playlist in no time.
Was this solution helpful?