WCF/C# Unable to catch EndpointNotFoundException

Posted by Paul Jones on Stack Overflow See other posts from Stack Overflow or by Paul Jones
Published on 2010-03-16T22:31:18Z Indexed on 2010/03/16 23:11 UTC
Read the original article Hit count: 850

Filed under:
|
|

Hi all,

I have created a WCF service and client and all works until it come to catching errors. Specifically I am try to catch the EndpointNotFoundException for when the server happens not to be there for whatever reason, I have tried performing a simple try catch block catching the specific error and the communication exception it derives from and I've tried catching just Exception. None of these succeed in catching the exception, however I do get

A first chance exception of type 'System.ServiceModel.EndpointNotFoundException' occurred in System.ServiceModel.dll

in the output window when the client tries to open the service. Any ideas as to what I'm doing wrong?

© Stack Overflow or respective owner

Related posts about c#

Related posts about wcf