Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Windows media player
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? Smile | :)
Posted 24-Feb-12 4:49am
Edited 24-Feb-12 4:50am
v2
Comments
LanFanNinja at 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- at 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? :)
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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[^]
  Permalink  
Comments
Joel Whatley- at 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:)
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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. ^ــ^
  Permalink  
Comments
richcb at 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)



Advertise | Privacy | Mobile
Web01 | 2.8.141015.1 | Last Updated 15 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100