我试图找到下面的EndpointNotFoundException异常的潜在原因(在客户端发生,异常是间歇性的)。异常消息描述了两个可能的原因:
我验证了两者,端点可用以及SOAP操作。网络配置似乎是正确的,并且所有计算机都已启动,运行且负载非常轻。我还检查了诸如代理(没有),并发(maxConcurrentConnection增加)和性能计数器(一切看起来都正常)之类的东西。这可能是由于客户端库中的错误(我们正在汇集代理)导致我们最终遇到故障状态的代理或某个套接字从未关闭?
简而言之,我想知道在客户端代理中间歇性地导致该异常的原因。
Exception: System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at https://production.com/MyService.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 11.11.111.11:443
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
at System.Net.HttpWebRequest.GetRequestStream()
at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStream()
--- End of inner exception stack trace ---
Server stack trace:
at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStream()
at System.ServiceModel.Channels.HttpOutput.Send(TimeSpan timeout)
at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.SendRequest(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
答案 0 :(得分:0)
我有完全相同的问题。就我而言,用IP替换计算机名称是可行的。我知道这没有多大意义。
不起作用:
ProcessHandle
可行吗?
<endpoint address="http://MyComputerName:82/MyApplication/MyPath/MyWebService.asmx"
我应该补充一点,浏览器可以使用计算机名完美访问端点。但是,当应用程序进行调用时,它根本不起作用。