Fix: Media Library Is Corrupted

The “Media library is corrupted” error occurs when either the Windows media player library database itself or the information stored in it gets corrupted. Normally, the database should be able to recover automatically from the database corruption but sometimes, the corruption is of such a nature that the recovery process is needed to be manual. If you too are facing this issue, you can try the following 2 methods.

Media Library Is Corrupted

These methods apply to Windows 7 / 8 and 10.

Method 1: Delete the Database

In the first method, we will be clearing out the corrupt database data from your computer. Don’t worry as the Windows media player rebuilds the database on its own when you restart it.

Press Windows key + R to invoke the run dialog.

Type %LOCALAPPDATA%\Microsoft\Media Player into it and hit

Select all the files in the folder (not the folders present) and then hit the Delete key to delete them. Restart the Windows media player now.

Media Library Is Corrupted1

If the above method doesn’t solve the problem for you, try the next one.

Method 2: Delete the Database Cache Files

This method is only applicable to Windows 7/Vista users.

Press Windows key + R to invoke the run dialog.

Type %LOCALAPPDATA%\Microsoft into it and click on

From the explorer window, scroll your way to the Media Player folder and delete

Restart your windows media player.

Media Library Is Corrupted2

Once again, upon restarting, the windows media player will rebuild the necessary files. If you tried the above two methods but got this error “Current database cannot be deleted because it’s open in Windows Media Network Sharing Service” then follow these steps to close the service and then retry the deletion:

Open the run dialog again by pressing Windows key + R.

Now type services.msc in the field and press enter.

From the list of services find the “Windows Media Network Sharing Service”

If the service shows to be running (which it should), right click on it and select stop

Media Library Is Corrupted3

This should stop the service and you can thus proceed with the deletion. Let’s know in the comments how you made it work!

Kevin Arrows


Kevin is a dynamic and self-motivated information technology professional, with a Thorough knowledge of all facets pertaining to network infrastructure design, implementation and administration. Superior record of delivering simultaneous large-scale mission critical projects on time and under budget.

Expert Tip

Fix: Media Library Is Corrupted

If the issue is with your Computer or a Laptop you should try using Restoro which can scan the repositories and replace corrupt and missing files. This works in most cases, where the issue is originated due to a system corruption. You can download Restoro by clicking the Download button below.

Download Now

I'm not interested