Error While using AxMediaPlayer in vb.net

naresh

Active member
Joined
Jul 4, 2006
Messages
38
Programming Experience
1-3
I am using "AxMediaPlayer" dll component to play a song in vb.net .
I write code as follows :


Dim _ax As New AxMediaPlayer.AxMediaPlayer
_ax.FileName = "C:\karth\0004\1_Wake Up.mp3"
_ax.Play()

But it gives error like this :

{"Exception of type 'System.Windows.Forms.AxHost+InvalidActiveXStateException' was thrown."}
Pls give the suggestion to rectify the problem .I need it as early as possible.
 
I can guess that it's trying to run that on the server since ASP runs on the server side as opposed to the client side that you want to hear it. I am terrbily new at this myself but I think you would have to use some JavaScript or something to play a file via the Client side. I really hope someone backs me up with an explanation or corrects me on this.
 
Back
Top