Link to home
Start Free TrialLog in
Avatar of dbruzzone79
dbruzzone79

asked on

Problem with the c# System.Media.SoundPlayer on a web host

i have an asp.net (c#) web app that uses the Syste.Media.SoundPlayer class. i have no problems playing sounds on my local machine but when i deploy the exact same code on my dev server the sound does not play (also, i get the same result on production).

what makes this situation more confusing is that there is no error message. i have tried using .wav files and the system sounds with no success.

any ideas as to why this is happening? thanks
Avatar of dstanley9
dstanley9

code-behind is executed on the server, not on the client.  It works locally because your machine is the server.  It is likely playing the sound on the server.
ASKER CERTIFIED SOLUTION
Avatar of Gary Davis
Gary Davis
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dbruzzone79

ASKER

ahhhh, you are right dstanley9. i will research silverlight and see if there is a reasonable solution.
No objection here:)

Gary