您能否在 aWcfServiceLibrary 中添加对 System.Web.dll 的引用。
我想创建一个在服务器上执行 EXE 的 Wcf 服务。为此,我有以下代码:
System.Diagnostics.Process process1 = new System.Diagnostics.Process();
process1.StartInfo.WorkingDirectory = System.Web.Request.MapPath("~/view");
process1.StartInfo.Arguments = "arguments";
process1.StartInfo.FileName = Request.MapPath("WindowsMediaPlayer.exe");
process1.Start();
但问题是请求在 System.Web.dll 中,并且这个程序集没有出现在我可以添加作为对 WcfServiceLibrary 的引用的程序集列表中。
你有什么建议?