Quick Answer
Delete the Windows Media Player database files from %LOCALAPPDATA%\Microsoft\Media Player while WMP is closed, then restart the player.
What's Going On?
This error shows up when you (or a script) cancelled a media operation—like ripping a CD, syncing a device, or playing a playlist. But if it keeps appearing even when you didn't cancel anything, the culprit is almost always a corrupt media library database. The database stores your playlists, album art, and file references. A glitch in that file makes WMP think you cancelled an action that's already finished.
I've seen this most often after a Windows update (especially on Windows 10 22H2 and Windows 11 23H2), after a failed sync with an old Zune or Windows Phone, or when a USB drive with media was yanked out without ejecting properly. The error sticks around like a stubborn ghost.
Fix Steps
- Close Windows Media Player completely. Check Task Manager for any
wmplayer.exeprocesses—kill them if needed. - Press Win + R, type
%LOCALAPPDATA%\Microsoft\Media Player, and hit Enter. This opens the hidden library folder. - Delete everything you see in that folder. Don't worry—WMP will rebuild it from scratch. If you have custom playlists you want to keep, back up the
Playlistssubfolder first, but 9 times out of 10 they're also corrupt. - Restart Windows Media Player. It'll re-scan your monitored folders and rebuild the database. The error should be gone.
If That Doesn't Work
Try a clean reset of the WMP preferences via the registry:
- Open Regedit (as admin).
- Go to
HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer. - Delete the Preferences key. Don't touch anything else in that branch.
- Restart WMP.
This wipes out any stuck preference flags that mimic a cancellation signal. I've only needed this once in 14 years, but when the database reset fails, this is your backup.
Alternative: Use the Library Reset Tool
Microsoft has a hidden library reset command. Close WMP, then run this from an elevated Command Prompt:
%windir%\system32\unregmp2.exe /LibraryResetThat tells WMP to rebuild its library from scratch without touching your actual media files. Works on Windows 7 through 11.
Prevention Tips
- Always eject USB drives safely. Yanking out a drive while WMP is scanning it can corrupt the database.
- Run a disk check (
chkdsk /f) on the drive where your media lives if the error recurs. Bad sectors can cause database corruption. - Keep WMP and Windows updated. Microsoft patched a similar corruption bug in KB5026361 (June 2023).
If you're sitting on an old playlist file you really don't want to lose, copy it out before the reset. But honestly, these errors usually mean the playlist itself is toast. Rebuild them. It's faster than chasing ghosts.