c# - 如何在桌面上获得与 IIS7 处理交互的许可?

标签 c# c++ asp.net wcf iis

我在执行 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", "");

本地服务: where is iis admins

最佳答案

开始,在搜索框中键入“本地服务”,打开该程序并找到 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/

相关文章:

C++:结构访问速度比基本变量慢?

c# - 如何使这个异步? (异步、等待 - C#、MVC)

asp.net - 输入元素未将 "flush"与 DIV 容器对齐

c# - 我将如何将 breeze 与 Entity Framework 6 和 .net 4.0 一起使用

C# 检查按钮是否被点击

C# 实时 try catch

c# - 如何为 Windows 中的进程分配超过 2GB 的内存?

c# - WCF-在ASP.NET应用程序中具有多个.svc服务

c++ - 使用gtest和clang 12编写单元测试时,体系结构x86_64的 undefined symbol

c++ - boost::asio 文件发送