netNamedPipeBinding Exception :: System.ServiceModel.EndpointNotFoundException:
-
Hi Guys, I'm working with my first app to use WCF services, and have hit a problem. I've created a couple of WCF service applications and generated their client proxies, then used these proxies to call the services from my application. This worked as hoped, but the performance wasn't great, so I replaced the default wsHttpBindings with netNamedPipeBindings (the services are on the same machine), changing the endpoints in the services web.configs and the client's app.config (changing the binding, removing the port number from the address and replacing the "http://" with "net.pipe://"). However, I now receive the following exception when testing: System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at net.pipe://localhost/TransformWcfService.svc that could accept the message. (followed by "System.ServiceModel.CommunicationObjectFaultedException: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state." on subsequent calls). Has anyone got any ideas on what could cause this / if there's anything else which may need changing? Thanks in advance. JB
-
Hi Guys, I'm working with my first app to use WCF services, and have hit a problem. I've created a couple of WCF service applications and generated their client proxies, then used these proxies to call the services from my application. This worked as hoped, but the performance wasn't great, so I replaced the default wsHttpBindings with netNamedPipeBindings (the services are on the same machine), changing the endpoints in the services web.configs and the client's app.config (changing the binding, removing the port number from the address and replacing the "http://" with "net.pipe://"). However, I now receive the following exception when testing: System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at net.pipe://localhost/TransformWcfService.svc that could accept the message. (followed by "System.ServiceModel.CommunicationObjectFaultedException: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state." on subsequent calls). Has anyone got any ideas on what could cause this / if there's anything else which may need changing? Thanks in advance. JB
CLIENT
<system.serviceModel>
<bindings>
<netNamedPipeBinding>
<binding name="localBinding" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="65536">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
</binding>
</netNamedPipeBinding>
</bindings>
<client>
<endpoint address="net.pipe://localhost/TranscodeWcfService.svc"
binding="netNamedPipeBinding"
contract="ITranscodeWcfService"
name="endpointITranscodeWcfService"
bindingConfiguration="localBinding"/>
<endpoint address="net.pipe://localhost/TransformWcfService.svc"
binding="netNamedPipeBinding"
contract="ITransformWcfService"
name="endpointITransformWcfService"
bindingConfiguration="localBinding"/>
</client>
</system.serviceModel>SERVER
<system.serviceModel>
<services>
<service name="CompanyName.ServiceLayer.Transform.TransformWcfService" behaviorConfiguration="CompanyName.ServiceLayer.Transform.TransformWcfServiceBehavior">
<endpoint address="" binding="netNamedPipeBinding" contract="CompanyName.ServiceLayer.Transform.ITransformWcfService" />
<host><baseAddresses><add baseAddress="net.pipe://localhost/TransformWcfService.svc"/></baseAddresses></host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="CompanyName.ServiceLayer.Transform.TransformWcfServiceBehavior">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>