Hi Palli, I understand that playing sound from IIS is not directly possible since the sound itself is not embed into the client side. So I had to improvise some walkround for this.
The first thing I tried was to add an HTMLBOX into my application, then put some html & javascript into it and call this javascript function from the main code.
____________________________________________________________________________________________________
The code (mostly for IE):
htmlBox1.Html = "<html><head><script type='text/javascript'>"+
"function EvalSound() {var thissound=document.getElementById('sound1'); thissound.Play();}" +
"</script></head><body><embed src='/../Resources/UserData/bipsound.wav' autostart='false' width=1 height=1 id='sound1' enablejavascript='true'>" +
"</body></html>"
then in my code I call the js function like the following.
this.InvokeMethodWithId("window.frames[0].window.EvalSound");
____________________________________________________________________________________________________
Again the code work on the developement server but when I publish it on IIS, I cant still hear any sound. So I am wondering if It could be a path problem? Like when the code is compiled or something, or am I really missing logic or just misunderstanding something.
Thank you!