Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 408709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:43:06+00:00 2026-05-12T17:43:06+00:00

I am currently learning about named pipes in Windows using ASP.NET 3.5 and C#.

  • 0

I am currently learning about named pipes in Windows using ASP.NET 3.5 and C#.
I wrote a small server program which creates a named pipe:

using (NamedPipeServerStream pipeStream = new NamedPipeServerStream(pipeName))
{
  pipeStream.WaitForConnection();
  // do sth.
}

and a client application opening the pipe like this:

using (NamedPipeClientStream pipeStream = new NamedPipeClientStream(pipeName))
{ 
  pipeStream.Connect();
  // do sth.
}

This works great as long as only one client connects to the pipe. It can both read and write. If I try to connect a second client, the code never exceeds the line

pipeStream.Connect();

Both the server and all clients are running on the same machine.
Any ideas?

Thank you very much in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T17:43:06+00:00Added an answer on May 12, 2026 at 5:43 pm

    Thanks for the fast help.

    I already handled the real processing in separate threads but forgot to mention that.
    A co-worker found the problem though:

    I had a StreamReader enclosed by another using block in the posted NamedPipeServerStream-using block on the server side.

    When this block finished closing the StreamReader, it also disconnected the NamedPipeServerStream for some reason. Also I wasn’t enclosing the pipeStream.WaitForConnection() in a loop.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im in the process of learning asp.net 3.5, currently on webparts and co. Ive
As I am learning more about rails, and breaking my design thinking from ASP.Net
I'm currently learning about concurrency in C++ and came across using a vector of
I currently learning about scrum and want to learn from experienced professionals in the
I'm currently learning Haskell, Which language (F# or Haskell) do you prefer for programming
So I am currently learning C++ and decided to make a program that tests
Currently we have a hybrid ASP/PHP setup connecting to a SQL Server 2005 database.
I'm currently learning a bit more about Linq-To-Entities - particularly at the moment about
I'm currently learning D, and one of the things I've wondered about is whether
Hopefully someone can help, I've been playing with ASP.NET MVC 2 for a learning

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.