WCF over named pipes

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

13.10.2009 16:08:23
are all those child processes using the same named pipe?
marc_s 13.10.2009 16:15:57
I ask since you say "...over the well known named pipe" - almost sounds like you're trying to use a single named pipe for several child processes
marc_s 13.10.2009 16:16:33
can you show us how such a child process is created, and how it created its WCF endpoint(s)? How does the parent attempt to call the child processes?
marc_s 13.10.2009 18:09:59
No, each child process opens its own named pipe. Anyway the same code works fine if I run the parent process in the console and not as a service. So the problem must have to do with the fact that I run the parent process as a windows service under "Local System Account"
Christoph 14.10.2009 06:49:56
2 ОТВЕТА

"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.

0
17.10.2009 10:58:20
In the case of NetNamedPipeBinding, "Endpoint not found" does not necessarily mean that the endpoint does not exist. The exact same error is seen if the endpoint exists but the client process attempting to communicate with it does not have the necessary security rights to see the shared memory object used by the WCF service-side stack to publish the pipe name currently in use. See details at blogs.charteris.com/blogs/chrisdi/archive/2008/05/19/… etc.
Chris Dickson 6.12.2010 22:38:59

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.

0
5.05.2010 23:51:01