'Windows Form application could not find axWindowsMediaPlayer

I have created a windows form applicaiton. In fact is a video player(media player) and buttons play stop pause etc. I have designed everything and it was working smoothly until 1hour ago. From that time I am receiving the following message in the form design . The message depicted in the following image: enter image description here

How can I overcome that issue?

In the designer script I am having:

private AxWMPLib.AxWindowsMediaPlayer axWindowsMediaPlayer1;

My issue began when I tried to create a second form in the same project. When I deleted the second form suddenly I got that message in my first form.



Solution 1:[1]

I also had the same problem, after I upgraded VS 2019 to 2022.

My project was built in 2019. What I had done was I closed the main project and opened a new project, then I added Windows Media Player to the project.

That went ahead normally.

I then closed the project and opened a previously loaded project and it worked fine, under VS 2019. (I did this without closing VS' main window. I closed projects using the File menu.)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Grant