title: Displaying CFFaultException FaultMessage
body: <p>I've got a WCF project running on our web server that our Mobile Devices use to pull data from our databases.</p>
  
  <pre><code>private void GetData(string serialNum) {
    try {
      var service = new AcpServiceClient();
      service.GetData(serialNum);
    } catch (CFFaultException err) {
      MessageBox.Show(err.FaultMessage, "Web Service Error");
    }
  }
  </code></pre>
  
  <p>As soon as I call <code>GetData</code>, I am presented with an ugly XML message like shown below:</p>
  
  <p><img src="https://i.stack.imgur.com/Z4ZSV.png" alt="CEZoom0"></p>
  
  <p>I see the error, buried in the XML text.</p>
  
  <blockquote>
    <p>Procedure 'sp1_GetCoilFromTable' expects parameter '@serial_Number', which was not supplied.</p>
  </blockquote>
  
  <p>Why is all of this XML being dumped into the <code>FaultMessage</code>?</p>
  
  <p>All of the help I am finding by searching for CFFaultException seems to pull up dead links or pages where others have asked questions that answer using dead links.</p>
  
  <p>What I would like is a clean way to get to the main error message without having to write a routine to parse the XML.</p>