Hacking Windows 7 Media Center

Fix a Corrupt Windows Media Player Database

by Michael Healy @ 7:00 am on February 19th, 2009 in programs, windows 7 with 15 Comments

Sometimes a Windows Media Player database can become corrupt for any number of reasons. This will obviously also effect Media Center since it runs off the same database for videos and music. Luckily fixing the problem isn’t too difficult.

WMP Library Delete

First thing that needs to be done is to stop the Windows Media Player Network Sharing Service. This service controls media sharing over your network but it also locks the database file so it can’t be deleted by the user. To stop this service enter task manager (crtl+alt+del) and select the services tab. Find “WMPNetworkSvc” in the list then right-click and select “Stop Service”. If you receive a denied error you can also stop the service from the “Services” button at the bottom.

WMP Network Sharing Service

Once the service has been stopped open Windows Explorer and go to “\Users\YOUR USERNAME\AppData\Local\Microsoft\Media Player”. It may be hidden so you won’t be able to see it but you can type it into the address bar to access the location. Alternatively, you can also enable hidden folders to be shown on your pc by going to Control Panel > Folder Options and enabling showing hidden folders.

Show Hidden Folders

Once you’re in the folder, locate the “CurrentDatabase_371.wmdb” file and delete it. If you receive a permission denied error the “WMPNetworksvc” may not have been stopped or you may need to restart your machine and start again.

Once the wmdb file has been deleted, restart Windows Media Player and the database should begin to repopulate. It may take some time to complete depending on the number of files. That should be all there is to fixing your corrupt Windows Media Player database.

Get more guides and tips by Following on Twitter or subscribe to the RSS Feed!

15 Comments


Anonymous
Comment #132 from Anonymous [Reply]

Thanks, this worked perfectly!

Comment left March 17, 2009 at 10:47 am Permanent Link

Gareth
Comment #483 from Gareth [Reply]

Great but can someone tell me how i can then set all my music as “Found” so i dont have to reseach all the albums it cant find.

Comment left April 29, 2009 at 10:24 am Permanent Link

battles
Comment #3194 from battles [Reply]

Michael,

I originally ripped my cd collection as .wav files (reason being is that there is a distinguishable sonic difference on using high-end audiophile equipment when playing back WAV files vs the lossless formats — many will deny this but it’s true). In doing so, I individually tagged each one of my ripped CDs using WMP’s manual tagging system. This was a very labor intensive and time consuming process. Unfortunately, I have found that transfering my manually tagged ripped cd collection from VISTA to Win7, will require that I repeat this labor intensive process (vs. if the files had been saved into a more taggable format such as wma lossless, flac, etc.). Since my rips are saved on a server and not being physically moved to a new computer, all I really need to do is find some way to transfer the wmp 11 data base file from the vista client computer to the Win7 client computer. Do you happen to know how this might be accomplished and based on hands on experience if it will work?

Thanks,

Battles

Comment left September 11, 2009 at 10:26 am Permanent Link

Frustated Overseas
Comment #6107 from Frustated Overseas [Reply]

I’ve tried this along one with other things found on on different websites with no positive results. Any other suggestions? It’s hard to get by out here without my music. :(

Comment left December 29, 2009 at 12:24 pm Permanent Link

Fox
Comment #6751 from Fox [Reply]

Hello i followed the steps and the error that my media player library was corrupt stopped popping up, however my media library did not re populate and when i try to manually add files into the library nothing happens does anyone know how i can fix this?

Comment left January 18, 2010 at 6:30 pm Permanent Link

Shahid
Comment #6956 from Shahid [Reply]

After performing the last step, when the windows media player is restarted, please wait for a while till the songs get re populate. You might also see an error message that this program is not responding as the status. But eventually the files will be added back in the library. This worked for me!!! THNKS!!!

Comment left January 23, 2010 at 12:32 am Permanent Link

Gail
Comment #7192 from Gail [Reply]

Help. I followed your directions and everything seemed to work fine except the library name appeared to be a file currentdatabase-372. The library repopulated but it didn’t appear to delete the old content. Now I have two copies of most everything. What’s the problem? Help!

Comment left January 29, 2010 at 2:20 am Permanent Link

Gail
Comment #7198 from Gail [Reply]

p.s. I found another post on another website. It said to delete all of the files, but not the folders within the Media Player folder. I did this and the old library with all of the dups was deleted and a new one was rebuilt.

Comment left January 29, 2010 at 4:22 am Permanent Link
Comment #7605 from JimZeller [Reply]

I have the TV setup cannot continue error
windows tells me to restart windows media center and retire tv set up……….
nothing works so far just wondering if I was the only one that just wanted to throw windows 7 out the window????????
for me vista was much better I just never had any problems the media center and that is the only thing this computer does.
I have a hp quad

Comment left February 12, 2010 at 12:43 am Permanent Link
Comment #8764 from BookwormDragon [Reply]

I tried this as described above, but it didn’t work at first. Finally, I deleted everything in the \Users\YOUR USERNAME\AppData\Local\Microsoft\Media Player folder, and that finally did the trick. Got rid of “ghost” tracks, stuck playlists, and everything. It found all my proper media and playlists right away. Thanks!

Comment left March 25, 2010 at 2:13 pm Permanent Link

Ellen
Comment #8862 from Ellen [Reply]

This fix did not work for me… but helped to fix my problem. I had deleted some albums and they were still in the library as “ghosts” (only way I can describe it). I could do nothing with them but as I followed the instructions for this fix I found that they were stored in the same location that this fix takes you to. I viewed them as icons and they came up as music so I deleted them and my not so friendly ghosts disappeared! Thank you very much.

Comment left March 28, 2010 at 6:22 pm Permanent Link

Vishu
Comment #12172 from Vishu [Reply]

thanks a lot!..I was facing the corrupt library problem from quite some time now, this resolved the issue flawlessly!

Comment left June 3, 2010 at 1:36 pm Permanent Link

Stan
Comment #12915 from Stan [Reply]

Thank you for these instructions – it worked beautifully – Cheers!!

Comment left June 15, 2010 at 8:14 pm Permanent Link

Winxchot
Comment #12979 from Winxchot [Reply]

the problem i have with my w media player is that, few of the video files stopped playing in wmp. i got a error s windows media player encountered a problem. while playing, and in the the troubleshoot it detected as library corrupted, i followed all these steps correctly, but still i am getting same error, all these video files were working before in wmp, but now almost all the video players are denying to play it, im hopeless, thinking of reinstalling the OS. or if anyone has a solution please mail it to me, Thanks

Comment left June 18, 2010 at 1:42 am Permanent Link

Michelle
Comment #13168 from Michelle [Reply]

Well, the database is back!!!!!!!!!!!!!!!!

There is only one problem left it will still not let me sync to my windows phone or to my mp3 player, is there a fix for that? You click on the “sync” tab, plug in the mp3 and wmp says “connect a device” and that is all it ever says.

Comment left June 26, 2010 at 9:02 am Permanent Link

Leave A Comment

Post Anonymously, Fill in your details or Use one of the Social Networks below to login and post a comment!