I create this web application that provides sound whenever the number in the window changes. When I run my application in Visual Studio, The sound perfectly works but when I open my web with IIS 7, the sound doesn't work anymore.
What causes this? And How can I solve it?
I'm using ASP.Net by the way.
thanks for immediate response.
This is the code that i use
public void providesound()
{
 System.Reflection.Assembly a =System.Reflection.Assembly.GetExecutingAssembly();
 System.IO.Stream s = a.GetManifestResourceStream("~/sound/beep.wav");
 SoundPlayer player = new SoundPlayer(s);
 player.Play(); 
}