我是WCF服务的开发人员。我的测试客户非常适合。但是对于真实客户端(使用相同的客户端代理),它会失败。同样的WCF服务与NetTcpBinding的工作,只有netNamedPipeBinding出现此错误,即使ConcurrencyMode = ConcurrencyMode.Single使用WCF时未找到命名管道netNamedPipeBinding
这里是
有没有终点在 net.pipe听除外://本地主机/ MyService 可以接受消息。这通常是由不正确的地址 或SOAP操作导致的 。有关更多详细信息,请参见InnerException,如果存在 。
服务器堆栈跟踪:在
System.ServiceModel.Channels.PipeConnectionInitiator.GetPipeName(URI URI)在 System.ServiceModel.Channels.NamedPipeConnectionPoolRegistry.NamedPipeConnectionPool.GetPoolKey(的EndpointAddress 地址,乌里通过) System.ServiceModel.Channels.CommunicationPool`2.TakeConnection(EndpointAddress address,Uri via,TimeSpan timeout, TKey & key)at System.ServiceModel .Channels.ConnectionPoolHelper.EstablishConnection(时间跨度 超时)处 System.ServiceModel.Channels.CommunicationObject.Open(时间跨度 超时) System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(时间跨度 超时)在 System.ServiceModel.Channels .ServiceChannel.OnOpen(时间跨度 超时)在 System.ServiceModel.Channels.CommunicationObject.Open(时间跨度 超时)在 System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(时间跨度 超时,CallOnceManager级联)
在 System.ServiceModel.Channels.ServiceChannel.EnsureOpene d(时间跨度 超时)在 System.ServiceModel.Channels.ServiceChannel.Call在 System.ServiceModel(字符串 动作,布尔单向, ProxyOperationRuntime操作, 对象[]项,对象[]奏,时间跨度 超时)。 Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage 包括methodCall,ProxyOperationRuntime 操作)在 System.ServiceModel.Channels.ServiceChannelProxy.Invoke(即时聊天 消息)在异常重新抛出[0]:在 System.Runtime.Remoting.Proxies .RealProxy.HandleReturnMessage(IMessage reqMsg,即时聊天retMsg)在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData & MSGDATA,的Int32类型)在
内部异常
PipeException:“管道端点' net.pipe:// localhost/MyService'在本地机器上找不到。“
要说清楚 - 你的客户和你的服务在同一台机器上?如果没有命名管道将无法正常工作... – Murph 2009-12-04 18:45:08
@Murph,是的,他们在同一台机器上。 – 2009-12-04 19:56:36
您是否设法解决这个问题?我有同样的问题。 – Tsury 2015-02-08 16:57:32