• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 598
  • 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
0
dbruzzone79
Asked:
dbruzzone79
  • 2
1 Solution
 
dstanley9Commented:
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.
0
 
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
0
 
dbruzzone79Author Commented:
ahhhh, you are right dstanley9. i will research silverlight and see if there is a reasonable solution.
0
 
Gary DavisDir Internet SvcsCommented:
No objection here:)

Gary
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

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