Questions tagged [namedpipeserverstream]
29 questions
7
votes
3 answers
Way to check if NamedPipeServerStream started in Client side
I have a client using NamedPipeClientStream and a server using NamedPipeServerStream.
The client may start before the server, and when it call clientStream.Connect(timeout) i get TimeoutException as expected.
Is there any way I can check if there is…

Joseph
- 1,716
- 3
- 24
- 42
6
votes
1 answer
Access Denied Error while trying to get the client process executable path
I am working on a WCF service that is hosted as a windows service which uses named pipes - NamedPipeServerStream (Users privilege) to establish secured connection between server and client processes. To check the authenticity of the client process,…

Sophia S
- 61
- 5
5
votes
1 answer
NamedPipeServerStream.BeginWaitForConnection fails with System.IO.Exception: The pipe is being closed
I have written a simple async NamedPipeStreamServer process in C#, the heart of which is:
public void Listen()
{
bool shuttingDown = false;
while (!shuttingDown)
{
NamedPipeServerStream serverStream =
new…

Bob Vesterman
- 1,127
- 1
- 11
- 31
4
votes
1 answer
NamedPipeServerStream Unauthorized Access exception
I recieved an Event Viever entry from one of my users saying that Unauthorized Access Exception happened. The process is started from a service as a SYSTEM. I was able to narrow down the error to the part where NamedPipeServerStream is created:
…

sanjihan
- 5,592
- 11
- 54
- 119
4
votes
1 answer
NamedPipeServerStream receive MAX=1024 bytes, why?
I'm using a NamedPipeStream, client and server, I'm sending data from client to server, the data is a serialize object which include binary data.
When the server side receive the data, it always have MAX 1024 size while client send much more!! so…

Joseph
- 1,716
- 3
- 24
- 42
4
votes
0 answers
named pipe client won't work in unity3d
I wrote this C# code to have namedPipeServer and NamedPipeClient, with Asynchronous read and write settings, connect to each other. Both code runs perfectly on visual studio 2010 that I am using with read and write working well without any…

N_E
- 743
- 10
- 16
2
votes
1 answer
Named pipe server with multiple clients (C#)
I have a named pipe server written in C#. The gist of the implementation is:
void BeginWaitForNextConnection()
{
var pipe = new NamedPipeServerStream(
PipeName,
PipeDirection.InOut,
…

Jonathan Gilbert
- 3,526
- 20
- 28
2
votes
0 answers
Can one perform sync read/write operations on an async named pipe?
My expectation is that is this the case, that after creating a NamedPipeServerStream with PipeOptions.Asynchronous (and the client side as well), that one can still perform synchronous Read/Write operations on the pipe.
However, I have found that…

Eric Vasilik
- 362
- 2
- 14
2
votes
0 answers
All instances Pipe Are busy - c# NamedPipeServerStream
im trying to use pipe via .net v4.0 on winforms application background
heres my code -->
public void main()
{
using (NamedPipeServerStream pipeserver = new NamedPipeServerStream("colors", PipeDirection.Out,4))
{
…

SkyWalker
- 21
- 2
2
votes
0 answers
Multithreaded, MultiClient NamedPipeServer in C#
I was trying to build a multi threaded named pipe server/client. The code base is based on this thread, Multithreaded NamePipeServer in C#
The real problem is, i need a bi-directional pipe, to write acknowledgement to cleint. For this, in…

Jimson James
- 2,937
- 6
- 43
- 78
2
votes
1 answer
Exiting an application that is blocked waiting for an incoming pipe stream
I have an application that runs a NamedPipeServerStream in a thread and waits for connections on it like so:
NamedPipeServerStream pipeServerTemp = new NamedPipeServerStream(PIP_NAME, PipeDirection.InOut,…

Omar Kooheji
- 54,530
- 68
- 182
- 238
1
vote
1 answer
c# - Why is my child process pipe closing automatically?
I'm trying to pass information from a child process, that is a pipe, to its parent process that is just a form at this point. I have gotten my named pipes to work between each other when they are independent and not child processes however when I…

Cflux
- 1,423
- 3
- 19
- 39
1
vote
2 answers
named pipe stream example not showing the result
I'm new to pipe stream and tried to practice. I've written the following two projects and I can't see the result (which I wrote within the server project) from the client project. Here's the first project:
using (NamedPipeServerStream…

Marc2001
- 281
- 1
- 3
- 12
1
vote
0 answers
Serialized Object sending with NamedPipe not working
I am trying to send a serialized object (using XMLSerializer) thorugh a NamedPipe from a server process (.NET application exe) to a client process (.NET application exe), and vis versa.
The sequence is:
1) Server application opens Exe1 using…

Ibrahim D.
- 318
- 4
- 17
1
vote
2 answers
Multithreaded Server implementation in C#
I'm creating a Windows Service which has a component which listen's to a named pipe to interact with programs run from userspace. I've used the code from this answer as a base for a multithreaded server implementation, however I get strong code…

psaxton
- 1,693
- 19
- 24