Windows 服务中的 WCF 主机:System.Net.WebException:远程服务器返回错误:(404) 未找到 [英] WCF host in Windows Service: System.Net.WebException: The remote server returned an error: (404) Not Found

查看:94
本文介绍了Windows 服务中的 WCF 主机:System.Net.WebException:远程服务器返回错误:(404) 未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

许多 WCF 服务托管在一个窗口中.当 Windows 服务刚刚运行时,wcf 服务端点运行良好.长时间运行后,wcf服务宕机了.不过,这次负载不重,而是服务宕机了.

Many WCF services hosted in one windows. When windows service is just running, the wcf service endpoints are working well. After a long-time running, the wcf service is down. Though, this time the load is not heavy but instead, the services down.

停机后,当我通过互联网浏览器或客户端应用访问端点时,它们都抛出以下异常.

After down, when I visit the endpoint through Internet browser or client app, they both throw the following exception.

    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.

我不知道这个问题.有没有人对此有所了解,请帮忙.提前致谢.

I have no idea about this problem. Do anyone know anything about this, pls help. thanks in advance.

推荐答案

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

This usually means that your parameters are out of sync or the hosting service may have been modified. Check and make sure your parameters case (if the host is case sensitive) and then ensure you are passing the correct values.

这篇关于Windows 服务中的 WCF 主机:System.Net.WebException:远程服务器返回错误:(404) 未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆