Click here to Skip to main content
15,667,735 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,
I have a program in c# that alarms with play sound if any terms happening , when I run he program with source it run correctly but after publish , even on same system don’t work ! though all permissions set on
my source:
SoundPlayer vSoundPaly = new SoundPlayer(@"F:\web\publish\sound\DustyF1-break11.wav");
       for (int i = 0; i < 4; i++)

Plz help me.
Updated 20-Sep-13 21:05pm

1 solution

I think your sound address is not true : F:\web\publish\sound\DustyF1-break11.wav
You publish it on web . you can't refer it to a drive in your computer .
Share this answer
ridoy 21-Sep-13 3:12am    
exactly, a 5.
mary_sa 21-Sep-13 3:15am    
the server that I published and the computer the I browes the web is the same
Pooria Lajevardy 21-Sep-13 3:23am    
no you should enter it's url . this is a web application not windows application...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900