Note that there are some explanatory texts on larger screens.

plurals
  1. POThere was no endpoint listening
    text
    copied!<p>When I try to call the method in the WCF host I get this error:</p> <blockquote> <p>There was no endpoint listening at net.pipe://localhost/PipeReverse that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.</p> </blockquote> <p>I have a class that starts the WCF host:</p> <pre><code>public class ProcessUnderMouseServer { public ProcessUnderMouseServer() { using (host = new ServiceHost( typeof(PrcoessUnderMouse), new Uri[] { new Uri("net.pipe://localhost") })) { host.AddServiceEndpoint( typeof(IPrcoessUnderMouse), new NetNamedPipeBinding(), "PipeReverse"); host.Open(); } } } </code></pre> <p>this class is in a different library project than the consuming project</p> <p>Then I try to consume it like this:</p> <pre><code>ProcessUnderMouseServer ProcessUnderMouseServer = new ProcessUnderMouseServer(); ChannelFactory&lt;IPrcoessUnderMouse&gt; pipeFactory = new ChannelFactory&lt;IPrcoessUnderMouse&gt;( new NetNamedPipeBinding(), new EndpointAddress( "net.pipe://localhost/PipeReverse")); IPrcoessUnderMouse pipeProxy = pipeFactory.CreateChannel(); string str = Console.ReadLine(); Console.WriteLine("pipe: " + pipeProxy.GetProcessUnderMouse()); </code></pre> <p>Shouldn't </p> <pre><code>host.AddServiceEndpoint(typeof(IPrcoessUnderMouse),new NetNamedPipeBinding(), "PipeReverse"); </code></pre> <p>be sufficient to add the end point? why it says that <code>no endpoint listening at net.pipe://localhost/PipeReverse</code> ??</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload