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

  • SEARCH
  • Home
  • 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 9265517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:05:15+00:00 2026-06-18T14:05:15+00:00

I am using a named pipe to communicate between two processes using .Net 3.5.

  • 0

I am using a named pipe to communicate between two processes using .Net 3.5. This works fine on Windows 7, but somehow does not under Windows XP.

I am getting an InvalidOperationException there. Here is my attempt of translation of the german message: “Pipe handle has not been set. Did your PipeStream implementation call InitializeHandle?”

I have created a test project for this:
http://www.chinery.de/dateien/NamedPipeTest.zip

In the application, you can hit “Connect” and will see the name of the Pipe. On the right hand side, you can enter a message that will be sent through the pipe, if all goes well.

As I have said, the problem only appears on Windows XP for me.

Does anyone have a clue on this?

  • 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-06-18T14:05:16+00:00Added an answer on June 18, 2026 at 2:05 pm

    I finally found the solution myself. It was the pipe client creation:

    NamedPipeClientStream pipeClient = new NamedPipeClientStream("localhost", PipeName, PipeDirection.InOut)
    

    I had to change this to:
    NamedPipeClientStream pipeClient = new NamedPipeClientStream(“.”, PipeName, PipeDirection.InOut)

    (change server name from “localhost” to “.”)

    This somehow worked on Windows 7, but not on XP. Now it finally works on both systems.

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

Sidebar

Related Questions

I am using a named pipe for communications between two processes and want to
I'm using a named pipe to communicate between a PHP script and a C++
I have a Named Pipe and It Works Fine While I access it using
I'm trying to create a duplex named pipe using the windows API CreateNamedPipe to
I remember using Named Pipes for communicating between 2 machines (back in Windows NT).
I am using windows named pipe example. When I run sample programs to create
I'm struggling to get a .NET ( NOT a WCF) named pipe to communicate
While trying to implement the Named pipe (e.g. two independent unrelated processes that are
I am designing a WCF service with callback using named pipe binding. And when
I'm using a named-pipe WCF service, which has about 1000 methods (yes, I know

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.