Jestem twórcą usługi WCF. Moi testowi klienci działają z tym dobrze. Ale jeśli chodzi o rzeczywistych klientów (przy użyciu tego samego proxy klienta), nie powiedzie się. Ta sama usługa WCF współpracuje z netTcpBinding ten błąd występuje tylko z netNamedPipeBinding, nawet z ConcurrencyMode = ConcurrencyMode.SingleNie znaleziono nazwy potoku podczas korzystania z WCF netNamedPipeBinding
Oto wyjątek
nie było żadnego punktu końcowego słuchania w net.pipe: // localhost/MyService , która może zaakceptować wiadomość. Jest to często spowodowane nieprawidłowym adresem lub działaniem SOAP. Zobacz InnerException, jeśli obecny, po więcej szczegółów.
Server ślad stosu: w
System.ServiceModel.Channels.PipeConnectionInitiator.GetPipeName (Uri uri) w System.ServiceModel.Channels.NamedPipeConnectionPoolRegistry.NamedPipeConnectionPool.GetPoolKey (EndpointAddress adres Uri via) pod adresem System.ServiceModel.Channels.CommunicationPool`2.TakeConnection (EndpointAddress adres, adres Uri przez, Timeout Timeout, klucz TKey &) pod numerem System.ServiceModel .Channels.ConnectionPoolHelper.EstablishConnection (TimeSpan timeout) w System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen (TimeSpan timeout) w System.ServiceModel.Channels.CommunicationObject.Open (TimeSpan timeout) w System.ServiceModel.Channels .ServiceChannel.OnOpen (TimeSpan timeout) w System.ServiceModel.Channels.CommunicationObject.Open (TimeSpan timeout) w System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce (TimeSpan czasu przerwy CallOnceManager kaskady)
w System.ServiceModel.Channels.ServiceChannel.EnsureOpene D (TimeSpan timeout) w System.ServiceModel.Channels.ServiceChannel.Call (string działania logiczna jednokierunkowy, działanie ProxyOperationRuntime, Zadanie [] iny, obiekt [] out, zakresu czasu timeout) w System.ServiceModel. Channels.ServiceChannelProxy.InvokeService (IMethodCallMessage methodCall, ProxyOperationRuntime działanie) w System.ServiceModel.Channels.ServiceChannelProxy.Invoke (iMessage wiadomości)wyjątek rethrown w [0] w System.Runtime.Remoting.Proxies .RealProxy.HandleReturnMessage (wiadomość głosowa reqMsg, iMessage retMsg) w System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke (MessageData & msgData typu Int32) w
wyjątek wewnętrzny
PipeException „Punkt końcowy rury" net.pipe: // localhost/MyService "nie można znaleźć na twoim lokalnym komputerze."
Dla jasności - Twój klient i Twoja usługa są na tym samym komputerze? Jeśli nie nazwane potoki nie będą działać ... – Murph
@Murph, tak, są one na tym samym komputerze. –
Udało ci się to rozwiązać? Mam ten sam problem. – Tsury