Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Web services System.ServiceModel.EndpointNotFoundException:在<;wsdl-url>;_Web Services - Fatal编程技术网

Web services System.ServiceModel.EndpointNotFoundException:在<;wsdl-url>;

Web services System.ServiceModel.EndpointNotFoundException:在<;wsdl-url>;,web-services,Web Services,我在Visual Studio 2012上使用第三方API开发了一个Web服务。我在本地电脑上运行测试,一切正常。我可以从网络服务得到我想要的回复。但是当我在我的远程服务器上托管这个Web服务时,我得到了以下异常 System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at <wsdlurl> that could accept the message. This is often

我在Visual Studio 2012上使用第三方API开发了一个Web服务。我在本地电脑上运行测试,一切正常。我可以从网络服务得到我想要的回复。但是当我在我的远程服务器上托管这个Web服务时,我得到了以下异常

System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at <wsdlurl> 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: No connection could be made because the target machine actively refused it <serviceurl>:8080
   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, Int32 timeout, 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.HttpRequestChannel.HttpChannelRequest.SendRequest(Message message, TimeSpan timeout)
   at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Dispatcher.RequestChannelBinder.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) 
System.ServiceModel.EndpointNotFoundException:在侦听时没有可以接受消息的终结点。这通常是由不正确的地址或SOAP操作引起的。有关更多详细信息,请参阅InnerException(如果存在)。->System.Net.WebException:无法连接到远程服务器-->System.Net.Sockets.SocketException:无法建立连接,因为目标计算机主动拒绝它:8080
位于System.Net.Sockets.Socket.DoConnect(端点端点快照,SocketAddress SocketAddress)
在System.Net.ServicePoint.ConnectSocketInternal(布尔连接失败、套接字s4、套接字s6、套接字和套接字、IP地址和地址、ConnectSocketState状态、IAsyncResult asyncResult、Int32超时、异常和异常)
---内部异常堆栈跟踪的结束---
位于System.Net.HttpWebRequest.GetRequestStream(TransportContext和context)
在System.Net.HttpWebRequest.GetRequestStream()中
位于System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStream()处
---内部异常堆栈跟踪的结束---
服务器堆栈跟踪:
位于System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStream()处
位于System.ServiceModel.Channels.HttpOutput.Send(TimeSpan超时)
位于System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.SendRequest(消息消息,TimeSpan超时)
位于System.ServiceModel.Channels.RequestChannel.Request(消息消息,TimeSpan超时)
位于System.ServiceModel.Dispatcher.RequestChannelBinder.Request(消息消息,TimeSpan超时)
在System.ServiceModel.Channels.ServiceChannel.Call(字符串操作、布尔单向、ProxyOperationRuntime操作、对象[]输入、对象[]输出、时间跨度超时)
位于System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage方法调用,ProxyOperationRuntime操作)
位于System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage消息)
那么,它是我的服务器还是Web服务所在的第三方服务器?我对服务器进行了远程登录,但无法连接。我的问题是,为什么我可以在本地计算机上运行我的Web服务,但不能在服务器上运行它