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

标签 windows wcf service

许多 WCF 服务托管在一个窗口中。 当 Windows 服务刚刚运行时,wcf 服务端点运行良好。长时间运行后,wcf服务宕机了。虽然,这次负载并不重,但服务却下降了。

宕机后,当我通过网络浏览器或客户端应用程序访问端点时,它们都抛出以下异常。

    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.

我不知道这个问题。有没有人知道这件事,请帮忙。 提前致谢。

最佳答案

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

关于windows - Windows 服务 : System.Net.WebException 中的 WCF 主机:远程服务器返回错误:(404) 未找到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1476913/

相关文章:

windows - 无法安装 Windows Azure Active Directory 模块 - Powershell

Windows:如何将我的 PostgreSQL 用户设置为 super 用户?

c# - 无法在 WCF 中发送更大的字节数组

c# - 启动 Windows 服务时出现错误 1053(在 Visual Studio 中创建的 exe)

android - NotificationListenerService 中的 OnListenerCONnected 未被调用

windows - git stash 在 Windows 上运行缓慢

c# - 双向客户端服务器网络通信

c# - 始终在 WCF 服务中使用 Json 返回 XML 字符串

java - 收到 fcm 通知时更新回收器 View

Windows 上的 PHP 错误日志文件格式(php.ini error_log 指令)