• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 607
  • Last Modified:

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
  • 2
1 Solution
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.
Gary DavisDir Internet SvcsCommented:
For a web media player consider flash (http://www.codeproject.com/aspnet/MP3PlayerControl.asp) or if you want to be really cutting edge, use the new Microsoft Silverlight (http://www.microsoft.com/silverlight/faq.aspx).

Gary Davis
dbruzzone79Author Commented:
ahhhh, you are right dstanley9. i will research silverlight and see if there is a reasonable solution.
Gary DavisDir Internet SvcsCommented:
No objection here:)

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now