Note that there are some explanatory texts on larger screens.

plurals
  1. POWCF Address Already In Use after adding client endpoint
    text
    copied!<p>I have a WCF Service that is self hosted and started through another service. Debugging in visual studio, they work just fine until I add endpoint configurations to my <code>app.config</code> for the service clients. Some clients for this service will be local and others remote. I have tried only having client endpoints for named pipes, if there's a client endpoint pointing to the service, and a client using the endpoint (even though it shouldn't even be instantiated at the point the service tries to start) I get an exception telling me that 0.0.0.0:8524 is in use. Here's the relevant configuration:</p> <pre><code>&lt;service name="EventService.EventPublishingService"&gt; &lt;clear /&gt; &lt;endpoint binding="netTcpBinding" address="net.tcp://localhost:8524/EventPublishingService" contract="EventService.Contracts.IEventPublishService"&gt; &lt;/endpoint&gt; &lt;endpoint address="net.tcp://localhost:8524/EventPublishingService/mex" binding="mexTcpBinding" contract="IMetadataExchange"&gt; &lt;/endpoint&gt; &lt;endpoint address="net.pipe://localhost/EventPublishingServicePipe" binding="netNamedPipeBinding" contract="EventService.Contracts.IEventPublishService" listenUriMode="Explicit"&gt; &lt;/endpoint&gt; &lt;host&gt; &lt;/host&gt; &lt;/service&gt; </code></pre> <p>For client endpoints I have tried both</p> <pre><code>&lt;endpoint address="net.tcp://localhost:8524/EventPublishingService" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IEventPublishService" contract="AGX.Atlas.EventService.Contracts.IEventPublishService" name="NetTcpBinding_IEventPublishService"&gt; &lt;/endpoint&gt; </code></pre> <p>and</p> <pre><code>&lt;endpoint address="net.pipe://localhost/EventPublishingServicePipe" binding="netNamedPipeBinding" bindingConfiguration="NetNamedPipeBinding_IEventPublishService" contract="AGX.Atlas.EventService.Contracts.IEventPublishService" name="NetNamedPipeBinding_IEventPublishService"&gt; &lt;/endpoint&gt; </code></pre> <p>I've removed the net.pipe binding from the service when removing the client binding as well to make sure it wasn't doing something weird with that. Still the same issue.</p> <p>Here's the binding configurations:</p> <pre><code> &lt;netNamedPipeBinding&gt; &lt;binding name="NetNamedPipeBinding_IEventPublishService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10" maxReceivedMessageSize="65536"&gt; &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt; &lt;security mode="Transport"&gt; &lt;transport protectionLevel="EncryptAndSign" /&gt; &lt;/security&gt; &lt;/binding&gt; &lt;/netNamedPipeBinding&gt; &lt;netTcpBinding&gt; &lt;binding name="NetTcpBinding_IEventPublishService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10" maxReceivedMessageSize="65536"&gt; &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt; &lt;reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" /&gt; &lt;security mode="Transport"&gt; &lt;transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" /&gt; &lt;message clientCredentialType="Windows" /&gt; &lt;/security&gt; &lt;/binding&gt; &lt;binding name="NetTcpBinding_IEventSubscriptionService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10" maxReceivedMessageSize="65536"&gt; &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt; &lt;reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" /&gt; &lt;security mode="Transport"&gt; &lt;transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" /&gt; &lt;message clientCredentialType="Windows" /&gt; &lt;/security&gt; &lt;/binding&gt; &lt;/netTcpBinding&gt; </code></pre>
 

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