WCF 是否总是需要我的主机具有管理员权限? [英] Does WCF always needs my host to have administrator privileges?

查看:46
本文介绍了WCF 是否总是需要我的主机具有管理员权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在关注 this 教程,并且似乎要实现 WCF在我的应用程序中,它需要以管理员权限运行.

I'm following this tutorial and seems like to implement WCF in my application it would need to run with administrator privileges.

我想使用远程处理在同一台机器上的进程之间进行通信.无论如何,即使是这种情况,每个人似乎都推荐 WCF.但是,如果这需要我的应用程序仅以管理员权限运行,那么我宁愿找到 WCF 以外的其他解决方案.

I want to use remoting only to communicate between processes in the same machine. Anyway, everyone seems to recommend WCF even when this is the case. But if this will require my application to run only with administrator privileges then I'd rather find another solution than WCF.

似乎有一个解决方法涉及运行命令行并使用一些因 Windows 操作系统版本而异的工具.这是唯一的方法吗?考虑到我的应用程序在 XP、Vista 和 7 上运行,我是否必须告诉我的用户运行命令行和所有这些东西,或者这可以自动化吗?.

There seem to be a workaround that involves running the command line and using some tool that varies depending on the Windows OS version. Is this the only way? Would I have to tell my users to run the command line and all that stuff or can this be automated, considering that my application runs on XP, Vista and 7?.

推荐答案

只有 HTTP URL 命名空间保留.如果您使用 命名管道通信(这将是推荐的进程间通信方式),那么你就可以作为普通用户正常运行了.

Administrative privileges are only needed for the HTTP URL namespace reservations. If you are using named pipe communication (which would be the recommended way to go for inter-process communication), then you can run fine as a normal user.

这篇关于WCF 是否总是需要我的主机具有管理员权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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