我在执行 xxx.exe 文件的服务器上安装了 WCF (C#)。
xxx.exe使用c++CreateWindow写成txt文件。
我已经找到了很多解决方案......
How to execute exe form asp.net ?
Unable to Start a Process from ASP.NET
我可以使用 System.Diagonistics.Process.Start 方法从 ASP.NET 启动一个进程。进程在后台启动,但我在桌面上看不到它。
我在服务中找不到 iis 管理服务和“允许服务与桌面交互”复选框。
服务器:
Windows 7 64bit
Internet Information Services 7
.NET Framework 4.5
WCF:
using System.Diagnostics;
Process.Start(@"D:\xxx.exe", "");
本地服务:
最佳答案
开始,在搜索框中键入“本地服务”,打开该程序并找到 IIS Admin Service,单击“登录”选项卡,有一个名为“登录为”的单选按钮组和一个复选框“允许服务与之交互”桌面”
您可能必须重新启动服务和 IIS。
编辑:
如果您在本地服务中看不到 Admin Service,则必须在 Internet 信息服务下的 Windows 功能中启用它 -> Web 管理工具 -> IIS6 管理兼容性 -> 全部选中
编辑
尝试使用进程信息
ProcessStartInfo startInfo = new ProcessStartInfo(@"D:\xxx.exe");
startInfo.WindowStyle = ProcessWindowStyle.Normal;
Process.Start(startInfo);
关于c# - 如何在桌面上获得与 IIS7 处理交互的许可?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20391411/