Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a music player in C# visual studio using the Windows Media Player control. It works fine on my computer - but when I want to send the .exe to another person they cannot open the program.
I searched the web and can't find any solutions but someone said they have the same problem:

It won't run on any computer which doesn't have visual studio installed...

I don't know why this is, and how I fix it - can anyone offer any solutions? :)
Posted
Updated 24-Feb-12 4:50am
v2
Comments
LanFanNinja 24-Feb-12 11:18am    
Not sure without trying it myself but make sure they have the full
.Net Framework 4 installed.

That is of course if you are targeting the .Net Framework 4 ;)
Joel Whatley- 24-Feb-12 16:03pm    
What would be the most commonly used Framework? Like if I wanted to send my program to just a few friends what would you recommend, and how on earth do I change which framework it works on? :)

Nice reference is available to embed Windows Media Player in the application. Ref: http://msdn.microsoft.com/en-us/library/windows/desktop/dd562851%28v=vs.85%29.aspx[^]
 
Share this answer
 
Comments
Joel Whatley- 24-Feb-12 10:58am    
This doesn't help. I already have buttons and events to control the wmp but it just doesn't work on any computer without visual studio. I have already done what that link you provided suggests:)
look you face this problem because you used AxInterop.WMPLib.dll & Interop.WMPLib.dll in your project then if you used the .exe file out the Debug folder it won't work with you ,you have two solution:
1-copy the debug folder then run the program from it.

2-make a setup file to your project with visual studio 2010 or visual studio 2012.

NOTE :I'm Beginner in programming it just my first 6 months to program and I wrote only 3 projects in c# and about 45 c++ console applications but i faced the same problem in my third project. ^ــ^
 
Share this answer
 
Comments
Richard C Bishop 15-Apr-13 17:39pm    
FYI, be careful to check the dates when posting questions, comments, or solutions. It could be construed as abuse if you post solutions to old questions.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900