如何获得在桌面promission与IIS7处理互动? [英] How to get a promission on desktop to interactive with IIS7 processing?
问题描述
我有执行xxx.exe文件的服务器上安装了WCF(C#)。
I have a WCF (C#) installed on a server that execute xxx.exe file.
用c ++的CreateWindow和写入TXT文件中的xxx.exe。
The xxx.exe using c++ CreateWindow and write txt file.
我已经找到了很多解决方案...
I already find a lot of solution ...
我可以从ASP.NET使用System.Diagonistics.Process.Start方法启动一个进程。进程在后台启动,但我不能看到它在桌面上。
I can start a process from ASP.NET using System.Diagonistics.Process.Start method. Process start in the background ,but I can't see it in the desktop.
我找不到IIS管理服务和允许服务与桌面交互复选框的服务。
I can't find iis admin service and "Allow Service to Interact with Desktop check box" in the services.
服务器:
Windows 7 64bit
Internet Information Services 7
.NET Framework 4.5
WCF:
using System.Diagnostics;
Process.Start(@"D:\xxx.exe", "");
本地服务:
local services:
推荐答案
转到开始,在搜索框中键入本地服务,打开该程序,并找到IIS Admin服务,单击登录选项卡上有一个单选按钮组所谓身份登录和一个复选框允许服务与桌面交互
go to start, in the search box type "local services", open that program and find IIS Admin Service, click Log On tab there is a radio button group called Log on As and a check box "Allow service to interact with desktop"
您可能需要重新启动服务和IIS。
You may have to restart service and IIS.
编辑:
如果您无法看到管理服务于本地服务,那么你将不得不在Windows下的Internet信息服务功能,使之 - > Web管理工具 - > IIS6管理兼容性 - >查看全部
If you can't see the Admin Service in local service, then you will have to enable it in Windows Features under Internet Information Services -> Web Management Tools -> IIS6 Management Compatibility -> Check All
修改
与processinfo尝试
Try with processinfo
ProcessStartInfo startInfo = new ProcessStartInfo(@"D:\xxx.exe");
startInfo.WindowStyle = ProcessWindowStyle.Normal;
Process.Start(startInfo);
这篇关于如何获得在桌面promission与IIS7处理互动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!