"Windows Media Player has an error and can't open that file"-this happens even when opening an unreleted fle or program.

When trying to run simple programs or open a random file, wmp will open and pop up the error that it has an error and can't open the file. Troubleshooter says no fix, and there is no error #. It blocks me from opening things.I have windows 7 home premium andd using the appropriate WMP. How do I get it to stop without havinging to uninstall it?

Question Info

Last updated October 12, 2018 Views 3,108 Applies to:


Which file format you are trying to play using windows media player?

 Do you get any error message when you try to play the files or delete the files? If yes what is the exact error message?


Check whether the file format is supported by windows media player. Check the article mentioned below to know which file format is supported by windows media player.


Windows Media Player



It might be that the Windows media player library is corrupted. I would suggest you to rebuild Windows media player library.


If you want to rebuild you library, follow the steps mentioned below.


1.      Shutdown windows media player. 

2.      Stop the media sharing service.  Go to Start->Control Panel->All Control Panel Items->Administrative Tools->Services.  Right-click on the “Windows Media Player Network Sharing Service” and select Stop.

3.      Navigate to “c:\Users\”your username”\AppData\Local\Microsoft\Media Player.  Now delete the files named CurrentDatabase_***.wmdb and LocalMLS_*.wmdb. 

4.      Start the media sharing service.

5.      Now restart Windows Media Player.


Windows Media Player library: frequently asked questions




Some times this issue may cause due to codecs, I would also suggest you to install codecs and check if it gelps, here is the link:




  Please respond back with the status of the issue and let us know if you have any issues.

Azam – Microsoft Support.

2 people were helped by this reply


Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.