WCF host in Windows Service: System.Net.WebExcepti

2019-06-26 09:35发布

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.

2条回答
时光不老,我们不散
2楼-- · 2019-06-26 10:00

Can you try to turn on tracing on WCF services http://msdn.microsoft.com/en-us/library/ms733025(v=vs.110).aspx?

查看更多
We Are One
3楼-- · 2019-06-26 10:09

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.

查看更多
登录 后发表回答