Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.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
Windows服务中的WCF主机:System.Net.WebException:远程服务器返回错误:(404)未找到_Windows_Wcf_Service - Fatal编程技术网

Windows服务中的WCF主机:System.Net.WebException:远程服务器返回错误:(404)未找到

Windows服务中的WCF主机:System.Net.WebException:远程服务器返回错误:(404)未找到,windows,wcf,service,Windows,Wcf,Service,许多WCF服务托管在一个窗口中。 当windows服务刚刚运行时,wcf服务端点工作正常。在长时间运行后,wcf服务将关闭。不过,这一次负载并不重,而是服务下降了 关闭后,当我通过Internet浏览器或客户端应用程序访问端点时,它们都会引发以下异常 System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at http://serviceip/servicename that

许多WCF服务托管在一个窗口中。 当windows服务刚刚运行时,wcf服务端点工作正常。在长时间运行后,wcf服务将关闭。不过,这一次负载并不重,而是服务下降了

关闭后,当我通过Internet浏览器或客户端应用程序访问端点时,它们都会引发以下异常

    System.ServiceModel.EndpointNotFoundException: 
    There was no endpoint listening at http://serviceip/servicename 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: The remote server returned 
    an error: (404) Not Found.
我对这个问题一无所知。有人知道这件事吗,请帮忙。
提前感谢。

您能尝试打开WCF服务上的跟踪吗

这通常意味着您的参数不同步或托管服务可能已被修改。检查并确保您的参数大小写(如果主机区分大小写),然后确保您传递的值正确。

SOS有人知道有关此问题的一些信息吗?您能提供代码吗?特别是服务代码本身及其端点的app.config?如果您已使用windows服务托管WCF服务,并且windows服务已关闭,则WCF服务也将关闭。如果我们不在同一页上,请告诉我。事件日志中有任何相关消息吗?