Note that there are some explanatory texts on larger screens.

plurals
  1. PONo endpoint listening at net.pipe exception
    primarykey
    data
    text
    <p>I have many WCF services and I need to call one service from another. I decided to use <code>netNamedPipeBinding</code> for this purpose.</p> <p>My web.config file looks like this. (I have not copied irrelevant stuff here.)</p> <pre><code> &lt;services&gt; &lt;service name="Services.AuthorizationService" &gt; &lt;endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" &gt; &lt;endpoint name="AuthorizationService" address="" binding="basicHttpBinding" contract="ServiceContracts.IAuthorizationService" /&gt; &lt;endpoint address="net.pipe://localhost/TestSite/AuthorizationService.svc" binding="netNamedPipeBinding" contract="ServiceContracts.IAuthorizationService" name="AuthorizationNamedPipeEndpoint"/&gt; &lt;/service&gt; &lt;/Services&gt; </code></pre> <p>The client section in the web.config file looks like this:</p> <pre><code>&lt;client&gt; &lt;endpoint address="net.pipe://localhost/TestSite/AuthorizationService.svc" binding="netNamedPipeBinding" contract="ServiceContracts.IAuthorizationService" name="AuthorizationServiceNamedPipe" /&gt; &lt;/client&gt; </code></pre> <p>I am trying to call one of the <code>OperationContract</code>s (GetDetails) like this:</p> <pre><code> using (ChannelFactory&lt;IAuthorizationService&gt; authorizationChannel = new ChannelFactory&lt;IAuthorizationService&gt;("AuthorizationServiceNamedPipe")) { IAuthorizationService authorizationService = authorizationChannel.CreateChannel(); var response = authorizationService.GetDetails(new GetDetailsRequestMessage()); } </code></pre> <p>When I execute this code, I get the exception at the line I invoke the OperationContract GetDetails:</p> <p><strong>There was no endpoint listening at net.pipe://localhost/TestSite/AuthorizationService.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.</strong></p> <p>I am not able to find out the exact problem. There is no InnerException as well. I am using Windows7 machine and IIS version is IIS7.5. Please note that I can call this service from my Winform application without any problem. net.pipe binding is added to the website bindings in the IIS.</p> <p><strong>How to ensure that the service is working properly using the net.pipe transport?</strong> In case of HTTP, we can browse in IE and ensure it.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

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