命名管道上的 WCF

发布于 2024-08-07 13:28:12 字数 254 浏览 3 评论 0原文

您好,我遇到以下情况的问题:

正在运行一个 Windows 服务,该服务会生成多个进程。这些进程通过命名管道绑定打开 WCF 服务主机。现在,父 Windows 服务尝试使用 wcf 代理通过众所周知的命名管道 ping(连接)到子进程。然而,这失败了:“找不到端点”

如果我将父进程作为控制台应用程序运行,它可以正常工作。

有什么想法吗?我正在考虑权限,但子进程应该继承服务的权限,而且它们也位于同一会话中。

谢谢, 克里斯托夫

Hi I have a problem with following scenario:

There is a windows service running which spawns several processes. These processes open a WCF service host over a named pipe binding. Now the parent windows service tries to ping (connect) to the child processes using the wcf proxy over the well known named pipe. This, however fails saying: "Endpoint not found"

If I run the parent process as a console application it works fine.

Any ideas? I was thinking about permissions but the child processes should inherit the permission of the service, besides they are in the same session as well.

thanks,
Christoph

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

甜妞爱困 2024-08-14 13:28:12

“未找到端点”可能是找不到端点。或者可能是找不到端点的配置。

我最好的猜测是您缺少端点的客户端配置。

"Endpoint not found" could be that it cannot find the endpoint. Or it could be that it cannot find the configuration for the endpoint.

My best guess is that you are missing the client side configuration for the endpoint.

冧九 2024-08-14 13:28:12

我没有解决方案,但问题是该服务以提升的权限运行,因此客户端也需要提升。

I don't have a solution, but the problem is that the service runs with elevated privileges, and therefore the client needs to be elevated too.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文