What's Going On Here?
You're staring at the NS_E_NAMESPACE_NODE_CONFLICT (0XC00D138C) error — that mouthful that says "It is not possible to remove the root namespace node". Windows Media Player is basically telling you it can't delete a top-level library entry because the database is corrupted. I've seen this most often after a failed media sync with a portable device, or when someone nukes a folder that WMP was still indexing. The fix is straightforward: we'll work from simplest to nuclear option.
Fix 1: Quick Library Refresh (30 seconds)
Before diving into registry hacks, try this: open Windows Media Player, press Ctrl+3 to switch to Library view. Right-click any empty space in the navigation pane, select Restore Library (if available). This rebuilds the library's visual structure without touching your files. It won't fix deep corruption, but I've had three clients this year where that was enough to clear the error after a botched import.
If you don't see Restore Library, skip to the next fix.
Fix 2: Clear Media Library Database (5 minutes)
This is the real fix 90% of the time. Windows Media Player stores its library in a set of files called the Windows Media Database (WMDB files). When those get scrambled — say, from a partial shutdown during a sync — that root node won't budge.
Close WMP entirely. Then do this:
- Press Win+R, type
services.msc, and hit Enter. - Find Windows Media Player Network Sharing Service. Right-click and Stop it. (This prevents WMP from locking the database files.)
- Go to
%LOCALAPPDATA%\Microsoft\Media Player(paste that into File Explorer or Run). - Inside that folder, delete everything. Yes, every file and subfolder. Don't worry — WMP will recreate them next time it launches.
- Restart the service you stopped (set it to Automatic, start it).
- Open WMP again. It'll rebuild the library from scratch. This usually takes 1–2 minutes on modern hardware.
If you still see the error after that, the database was stubborn. Try deleting the Media Player folder while WMP and the sharing service are both off, then restart.
Fix 3: Nuke the Hidden Library Metadata (15+ minutes)
Sometimes the conflicting node is stored in a separate metadata cache. I ran into this on a Windows 10 machine where a user had multiple user profiles and the conflict lived in the All Users profile. Here's the advanced approach:
- Open File Explorer Options (or Folder Options), View tab, enable Show hidden files, folders, and drives. Uncheck Hide protected operating system files (confirm the warning).
- Navigate to
C:\ProgramData\Microsoft\Media Player. Delete everything inside. - Go to
C:\Users\Default\AppData\Local\Microsoft\Media Player(if it exists) and delete contents there too. - Open a Command Prompt as administrator: press Win+X, choose Command Prompt (Admin) or Windows Terminal (Admin).
- Run
regsvr32 wmp.dllandregsvr32 wmploc.dll(one at a time). This re-registers the core WMP components. - Reboot the machine.
After rebooting, launch WMP. It'll rebuild everything fresh. The conflict should be gone.
When All Else Fails
If that 0XC00D138C still shows up, the problem might not be WMP itself, but corrupt media files in your library. A client of mine had a single corrupted MP3 file (downloaded via a bad FTP transfer) that kept causing the root namespace conflict. Here's how to find it: temporarily move all your music/video folders out of the monitored library locations (right-click folder > Remove from Library in WMP). Restart WMP — if the error disappears, add folders back one by one until the error returns. That pinpoints the offending file.
Most people stop after Fix 2. I'd start there if you've already seen the error more than once. It works.