I am developing windows service in VB.net in VS2010
In some case I want to play system default sound for user notification.
I had tried following code to play sound but it's not playing any sound.
System.Media.SystemSounds.Question.Play()
My.Computer.Audio.Play(Path.Combine(My.Application.Info.DirectoryPath, "Blip.wav"), AudioPlayMode.Background)
My.Computer.Audio.PlaySystemSound(Media.SystemSounds.Question)
Even I checked the check box of "Allow to interact with desktop" in service properties after installing service using "InstallUtil"
I checked the speaker connected with my pc.
I have tested it in win xp and win 7
Please help me to resolved this issue and let me know where I am going wrong.
Thanks