Tôi là nhà phát triển dịch vụ WCF. Khách hàng thử nghiệm của tôi làm việc rất tốt với nó. Nhưng khi nói đến khách hàng thực sự (sử dụng cùng một proxy máy khách), nó không thành công. Các dịch vụ WCF cùng làm việc với netTcpBinding, lỗi này chỉ xảy ra với netNamedPipeBinding, ngay cả với ConcurrencyMode = ConcurrencyMode.SingleKhông được tìm thấy đường ống có tên khi sử dụng WCF netNamedPipeBinding
Dưới đây là ngoại lệ
Không có endpoint nghe tại net.pipe: // localhost/MyService có thể chấp nhận tin nhắn. Đây là thường do địa chỉ không chính xác hoặc hành động SOAP. Xem InnerException, nếu có hiện tại, để biết thêm chi tiết.
server stack trace: tại
System.ServiceModel.Channels.PipeConnectionInitiator.GetPipeName (Uri uri ) tại System.ServiceModel.Channels.NamedPipeConnectionPoolRegistry.NamedPipeConnectionPool.GetPoolKey (EndpointAddress địa chỉ, Uri qua) tại System.ServiceModel.Channels.CommunicationPool`2.TakeConnection (EndpointAddress address, Uri via, TimeSpan timeout, TKey & key) tại System.ServiceModel .Channels.ConnectionPoolHelper.EstablishConnection (TimeSpan timeout) tại System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen (TimeSpan timeout) tại System.ServiceModel.Channels.CommunicationObject.Open (TimeSpan timeout) tại System.ServiceModel.Channels .ServiceChannel.OnOpen (TimeSpan timeout) tại System.ServiceModel.Channels.CommunicationObject.Open (TimeSpan timeout) tại System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce (TimeSpan timeout, CallOnceManager cascade)
tại System.ServiceModel.Channels.ServiceChannel.EnsureOpene d (TimeSpan timeout) tại System.ServiceModel.Channels.ServiceChannel.Call (String hành động, Boolean oneway, ProxyOperationRuntime hoạt động, Object [] ins, Object [] outs, TimeSpan timeout) tại System.ServiceModel. Channels.ServiceChannelProxy.InvokeService (IMethodCallMessage methodCall, ProxyOperationRuntime hoạt động) tại System.ServiceModel.Channels.ServiceChannelProxy.Invoke (IMessage nhắn)Exception rethrown tại [0]: tại System.Runtime.Remoting.Proxies .RealProxy.HandleReturnMessage (IMessage reqMsg, IMessage retMsg) tại System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (MessageData & msgData, Int32 loại) tại
Exception Nội
PipeException: "Các thiết bị đầu cuối đường ống ' net.pipe: // localhost/MyService 'không thể tìm thấy trên máy cục bộ của bạn."
Chỉ cần làm rõ - khách hàng của bạn và dịch vụ của bạn ở cùng một máy? Nếu không có tên ống sẽ không làm việc ... – Murph
@Murph, có họ đang trên cùng một máy. –
Bạn đã giải quyết được vấn đề này chưa? Tôi đang gặp vấn đề tương tự. – Tsury