views:

620

answers:

1

Hi, all, 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. Through this time the load is not heavy. but the services down.

After down, when visit the endpoint thourht Internet browser or client app, it 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.

A: 

404 means file not found.

I am guessing that your creation of servicehost is in the init instead of onStart.

Shiraz Bhaiji