ASP.Net WebForm Sound is not playing in Windows Server 2008 R2

Viewed 27

ASP.Net WebForm Sound is not playing in Windows Server 2008 R2 with below code.

note that its working fine in Windows 7.

Dim spath As String
    spath = "D:\Run\Sound.wav"
    Dim mysound As Media.SoundPlayer
    mysound = New Media.SoundPlayer(spath)
    mysound.Play()

    System.Threading.Thread.Sleep(30000)

    Dim mysound2 As Media.SoundPlayer
    mysound2 = New Media.SoundPlayer(spath)
    mysound2.Play()

regards, Basit.

0 Answers
Related