如何让我的客户端正确处理404错误? 现在抓到一个一般例外...HTTP 404错误在WCF客户端上显示为EndPointNotFoundException
我的WCF服务器使用 WebOperationContext.Current.OutgoingResponse.SetStatusAsNotFound(); 返回404错误代码
但是我的WCF客户端interperts它作为一个EndPointNotFoundException
有没有终点在http://myUrl是可以接受的消息听。这通常是由不正确的地址或SOAP操作引起的。有关更多详细信息,请参阅InnerException(如果存在)。
内部异常是引发WebException “远程服务器返回错误:(404)未找到
*** substatusco de ***不可用:https://msdn.microsoft.com/en-us/library/system.web.httpresponse.substatuscode(v=vs.110).aspx – Kiquenet 2015-04-14 09:20:23