发布后播放声音 [英] play sound after publish

查看:92
本文介绍了发布后播放声音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,

我在asp.net c#中有一个程序,如果发生任何条款,会发出播放声音的警报,当我运行程序时,它运行正确但运行后发布,即使是相同的系统不起作用!虽然所有权限都设置在

我的来源:

Hi friends,
I have a program in asp.net 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++)
       {
           vSoundPaly.Play();
           Thread.Sleep(5999);
       }



Plz帮助我。


Plz help me.

推荐答案

我认为你的声音地址不是这样:F:\web \publish\sound \DustyF1-break11.wav

你在网上发布它。您无法将其引用到计算机中的驱动器中。
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 .


这篇关于发布后播放声音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆