小编sch*_*rua的帖子

单壳执行

我使用在 Centos 6.0 64 位上运行 Apache 的 Mono 2.11.1 版本来运行名为 Provisionning 的 Web 服务,该服务与 Asterisk 交互。我需要调用并执行一个名为 Sox 的 shell 命令来转换音频文件。问题是我收到此错误消息:

System.ServiceModel.FaultException: System.ComponentModel.Win32Exception: ApplicationName='sox.sh', CommandLine='/var/lib/asterisk/sounds/4/chimes.wav /var/lib/asterisk/sounds/4/chimes_sox.wav', CurrentDirectory='/var/www/html/vms/bin/', Native error= Cannot find the specified file
 at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0
 at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0
 at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo) [0x00000] in <filename unknown>:0
 at Provisionning.VMSWS.ShellExec (System.String cmd, System.String path, System.String parms, System.Int32& exit_code) [0x00000] in <filename unknown>:0
 at Provisionning.VMSWS.SoxConvert (System.String fileName, System.String …
Run Code Online (Sandbox Code Playgroud)

.net mono web-services mod-mono

5
推荐指数
1
解决办法
4215
查看次数

标签 统计

.net ×1

mod-mono ×1

mono ×1

web-services ×1