简体   繁体   English

以本地系统运行的Windows服务无法以交互用户身份启动Com Server

[英]Windows Service running as Local System unable to launch Com Server as Interactive User

I have service (written in c# 4) running as the Local System user that needs to communicate with a COM Server (written in ATL) that is configured to run as the interactive user. 我有以本地系统用户身份运行的服务(用c#4编写),该服务需要与配置为以交互用户身份运行的COM服务器(用ATL编写)进行通信。 This COM Server then launches a GUI application. 然后,此COM Server启动GUI应用程序。

This works on my development machine but fails on our test environment and other developers' machine. 这在我的开发机器上有效,但在我们的测试环境和其他开发人员的机器上失败。 On these machines it appears that the COM Server is not being activated at all. 在这些计算机上,COM服务器似乎根本没有被激活。

Any help will be much appreciated 任何帮助都感激不尽

The problem was a permission issue. 问题是权限问题。 On some of the machines the users did not have launch and activation permissions. 在某些计算机上,用户没有启动和激活权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Windows 7中的用户交互服务 - User Interactive Service in Windows 7 为什么在Windows上运行本地系统服务不好? - Why running a service as Local System is bad on windows? 如何获取以用户身份运行的Windows 7应用程序的MainWindowHandle <foo> 从作为本地系统运行的服务中? - How can I get the MainWindowHandle of a Windows 7 application running as user <foo> from within a service running as Local System? 在作为本地系统运行的 windows 服务中进行键盘和鼠标操作? - Making keyboard and mouse operations in a windows service running as a local system? 在带有“本地系统帐户”的“ Windows服务”下运行时,.NET Windows 7截屏不起作用 - .NET Windows 7 take screenshot not working when running under 'Windows Service' with 'Local System Account' Windows服务作为本地服务运行-输入文件? - Windows service running as local service - input files? Windows服务无法打开COM端口 - Windows Service unable to open COM port 以特权用户身份运行Windows服务 - Running a windows service as a privileged user 我可以以编程方式创建本地交互式 windows 用户 session - Can I create local interactive windows user session programmatically 检查.NET Windows服务在控制台/交互式会话上是否有用户 - Check whether there is a user on the console/interactive session from a .NET Windows Service
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM