Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WCF and WF
  4. netNamedPipeBinding Exception :: System.ServiceModel.EndpointNotFoundException:

netNamedPipeBinding Exception :: System.ServiceModel.EndpointNotFoundException:

Scheduled Pinned Locked Moved WCF and WF
wcfcsharpwpftestingbeta-testing
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JohnLBevan
    wrote on last edited by
    #1

    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

    J 1 Reply Last reply
    0
    • J JohnLBevan

      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

      J Offline
      J Offline
      JohnLBevan
      wrote on last edited by
      #2

      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>

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups