title: WCF/C# Unable to catch EndpointNotFoundException
body: <p>I have created a WCF service and client and it all works until it comes to catching errors.  Specifically I am trying to catch the <code>EndpointNotFoundException</code> for when the server happens not to be there for whatever reason. I have tried a simple try/catch block to catch 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 </p>
  
  <blockquote>
    <p>A first chance exception of type
    'System.ServiceModel.EndpointNotFoundException'
    occurred in System.ServiceModel.dll</p>
  </blockquote>
  
  <p>in the output window when the client tries to open the service.  Any ideas as to what I'm doing wrong?</p>