IIS 8 - 通过ASP.NET服务器上启动的exe [英] IIS 8 - Launch exe on server via ASP.NET

查看:636
本文介绍了IIS 8 - 通过ASP.NET服务器上启动的exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图创建我的本地网络web应用。

I'm trying to create a webapplication for my local network.

我已经在PC上安装IIS 8,我托管在其上的ASP.NET C#应用程序。
现在我想启动服务器,上一个exe文件,当用户在asp.net应用程序点击一个按钮。

I've installed IIS 8 on a PC and I'm hosting an ASP.NET C# application on it. Now I would like to launch an exe-file on the server, when the user clicks a button in the asp.net application.

我创建了web应用一个新的应用程序池。

I've created a new application pool for the webapplication.

现在我推出具有以下code中的exe文件:

Now I'm launching the exe with the following code:

        Process process = new Process();
        process.StartInfo.FileName = @"C:\Windows\notepad.exe";
        process.Start();

如果我检查任务管理器,我可以看到exe文件在后台运行。
不幸的是,它不会在桌面上显示出来。

If I check the task manager, I can see that the exe is running in the background. Unfortunately, it doesn't show up on the desktop.

显然,是为IIS服务权限问题。

Obviously, there is a problem with permissions for the IIS service.

您可以帮我的权限的配置?

Can you help me with the configuration of the permissions?

感谢您,

桑德罗

推荐答案

这是不可能再在Windows Vista / Windows Server 2008或更高版本。为了帮助prevent所谓的落花的攻击 - 在一个攻击程序将消息发送到一个特权服务的窗口,它利用在消息处理程序中的漏洞 - 在互动会议是由真正的台式机隔离。微软称此会话0隔离。有一些<一href=\"http://blogs.technet.com/b/askperf/archive/2007/04/27/application-compatibility-session-0-isolation.aspx\"相对=nofollow>应用程序兼容性的措施为传统服务。

This is no longer possible in Windows Vista/Windows Server 2008 or later. To help prevent what are called 'shatter' attacks - where an attacking program sends a message to a privileged service's window, that exploits a vulnerability in that message handler - the 'interactive' session is isolated from real desktops. Microsoft call this Session 0 Isolation. There are some application compatibility measures for legacy services.

在Windows Server 2003和更早版本,则只有当用户在物理控制台或者登录,或使用特殊的开关,远程桌面告诉它连接到一个行政会议的工作。远程桌面6.0或之前(XP SP3或Vista SP1之前)使用 /控制台开关。对于Remote Desktop 6.1或更高版本(包含在XP SP3和Vista SP1),使用 /管理员。其他远程访问Utilities项目的物理控制台会话。

On Windows Server 2003 and earlier, it will only work if the user is either logged on at the physical console, or using a special switch to Remote Desktop to tell it to connect you to an administrative session. For Remote Desktop 6.0 or before (before XP SP3 or Vista SP1) you use the /console switch. For Remote Desktop 6.1 or later (included in XP SP3 and Vista SP1), use /admin. Other remote access utilities project the physical console session.

这篇关于IIS 8 - 通过ASP.NET服务器上启动的exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆