My problem is that when i pass path in this way its work fine
Hide Copy Code
Code
SoundPlayer playthewavfile = new SoundPlayer(@"G:\backup\LTM.CTP.WEBFORM\LTM.CTP.WEBFORM\Audio\q1.wav");Hide Copy Code
Code
FileUpload1.PostedFile.SaveAs(Server.MapPath("~/Forms/Upload/" + fileName)); string PATH = System.IO.Path.Combine(Server.MapPath("~/Forms/Upload"), FileUpload5.PostedFile.FileName); SoundPlayer playthewavfile = new SoundPlayer(PATH); playthewavfile.Play();

Shubham KumarRank #621 · 3.8K reputationPosted Feb 9, 2016, 11:05 PM EST
Ashok9 reputationPosted Feb 10, 2016, 3:43 AM EST
Sajid HussainRank #3,026 · 476 reputationPosted Feb 11, 2016, 6:09 PM EST