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 7667527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:07:37+00:00 2026-05-31T15:07:37+00:00

Despite many searches and read articles such as this: Exploring the WCF Named Pipe

  • 0

Despite many searches and read articles such as this: Exploring the WCF Named Pipe Binding – Part 1(part 2 and 3 inclusively), I haven’t been able to make my service work properly.

Here’s my config:

<system.serviceModel>
  <client>
    <endpoint address="net.pipe://localhost/GlobalPositioningService"
              binding="netNamedPipeBinding" 
              contract="GI.Services.GlobalPositioning.Contracts.IGlobalPositioning" />
  </client>
  <services>
    <service name="GI.Services.GlobalPositioning.Services.GlobalPositioningService">
      <endpoint address=""
                binding="wsHttpBinding"
                contract="GI.Services.GlobalPositioning.Contracts.IGlobalPositioning">
        <identity>
          <dns value="localhost" />
        </identity>
      </endpoint>
      <endpoint address="net.pipe://localhost/GlobalPositioningService"
                binding="netNamedPipeBinding"
                contract="GI.Services.GlobalPositioning.Contracts.IGlobalPositioning" />
      <host>
        <baseAddresses>
          <add baseAddress="http://localhost:8080/GlobalPositioningService/"/>
        </baseAddresses>
      </host>
    </service>
  </services>

Then, I try to test my service through Named Pipes:

[TestFixture]
public class GlobalPositioningServiceTests {
    [TestFixtureSetUp]
    public void SetUpHost() {
        var channelFactory = new ChannelFactory<IGlobalPositioning>(binding, new EndpointAddress(address));
        channelFactory.Open();
        service = channelFactory.CreateChannel();
    }

    private const string address = "net.pipe://localhost/GlobalPositioningService";
    private static readonly Binding binding = new NetNamedPipeBinding();
    private static IGlobalPositioning service;
}

And I have also tried another way using a ServiceHost instance:

    [TestFixtureSetUp]
    public void SetUpHost() {
        host = new ServiceHost(typeof(GlobalPositioningService));
        host.AddServiceEndpoint(typeof(IGlobalPositioning), binding, address);
        host.Open();
        service = new GlobalPositioningService();
    }

And I always obtain this error with stack trace:

Error 2 Test ‘GI.Services.GlobalPositioning.Services.Tests.GlobalPositioningServiceTests.GetGlobalPositionWorksWithDiacriticsInMunicipalityName(“143, rue Marcotte, Sainte-Anne-de-la-P\x00E9rade”,46.5736528d,-72.2021346d)’ failed:
System.ServiceModel.EndpointNotFoundException : There was no endpoint listening at net.pipe://localhost/GlobalPositioningService that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
—-> System.IO.PipeException : The pipe endpoint ‘net.pipe://localhost/GlobalPositioningService’ could not be found on your local machine.

Server stack trace:
at System.ServiceModel.Channels.PipeConnectionInitiator.GetPipeName(Uri uri)
at System.ServiceModel.Channels.NamedPipeConnectionPoolRegistry.NamedPipeConnectionPool.GetPoolKey(EndpointAddress address, Uri via)
at System.ServiceModel.Channels.CommunicationPool`2.TakeConnection(EndpointAddress address, Uri via, TimeSpan timeout, TKey& key)
at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.CallOpenOnce.System.ServiceModel.Channels.ServiceChannel.ICallOnce.Call(ServiceChannel channel, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at GI.Services.GlobalPositioning.Contracts.IGlobalPositioning.GetGlobalPosition(String mailingAddress)
at GI.Services.GlobalPositioning.Services.Tests.GlobalPositioningServiceTests.GetGlobalPositionWorksWithDiacriticsInMunicipalityName(String address, Double latitude, Double longitude) in C:\Open\Projects\Framework\Src\GI.Services\GI.Services.GlobalPositioning.Services.Tests\GlobalPositioningServiceTests.cs:line 27
–PipeException C:\Open\Projects\Framework\Src\GI.Services\GI.Services.GlobalPositioning.Services.Tests\GlobalPositioningServiceTests.cs 27

For your information, I’m using:

  1. Visual Studio 2010
  2. Windows 7
  3. NUnit

And my service is contained within a WCF Service Library.

  • 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-31T15:07:39+00:00Added an answer on May 31, 2026 at 3:07 pm

    It seems that you are attempting to do integration testing with a running instance of your service using the netNamedPipesBinding. To do this, you need to have both a service host providing an instance of your service and a service proxy instance to use for making calls to the service. You could try combining both the code in both of your sample TestFixtureSetup methods so that you are instantiating both the service host and the service proxy (the result of the CreateChannel method). For an example of how to do this, look at this blog post.

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

Sidebar

Related Questions

Despite reading many articles (some on this board) I am still scratching my head
Despite the number of similar questions, I haven't yet managed to find any such
Despite my many efforts to learn RegEx, I find this quite hard todo, so
I haven't been able to figure this out despite hours of messing around, hopefully
I think this has been done many times before but despite reading some posts
Despite substantial research and many posts that seem to indicate this isn't too tough,
Despite finding many other such questions and spending a lot of time on them,
Many Java Apps don't use anti-aliased fonts by default, despite the capability of Swing
Despite this being one of the best error messages I've ever seen (second only
Despite I have been using MVC in PHP many times, I found out that

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.