title: Wcf exception handling throw an error
body: <p>Hi I have a problem handling exceptions in wcf.
  I have a service like this one:</p>
  
  <pre><code>[ServiceContract]
  public interface IAddressService
  {
      [OperationContract]
      [FaultContract(typeof(ExecuteCommandException))]
      int SavePerson(string idApp, int idUser, Person person);
  }
  </code></pre>
  
  <p>I am calling the SavePerson() on the service in the WCFTestClient utility.
  The SavePerson() implementation is:</p>
  
  <pre><code>public int SavePerson(string idApp, int idUser, Person person)
  {
      try
      {
          this._savePersonCommand.Person = person;
  
          this.ExecuteCommand(idUser, idApp, this._savePersonCommand);
  
          return this._savePersonCommand.Person.Id;
      }
      catch (ExecuteCommandException ex)
      {
          throw new FaultException&lt;ExecuteCommandException&gt;(ex, new FaultReason("Error in   'SavePerson'"));
      }
  }
  </code></pre>
  
  <p>But I get this error:</p>
  
  <blockquote>
    <p>Failed to invoke the service. Possible
    causes: The service is offline or
    inaccessible; the client-side
    configuration does not match the
    proxy; the existing proxy is invalid.
    Refer to the stack trace for more
    detail. You can try to recover by
    starting a new proxy, restoring to
    default configuration, or refreshing
    the service.</p>
  </blockquote>
  
  <p>if I change the SavePerson method and instead of:</p>
  
  <pre><code>catch (ExecuteCommandException ex)
  {
      throw new FaultException&lt;ExecuteCommandException&gt;(ex, new FaultReason("Error in   'SavePerson'"));
  }
  </code></pre>
  
  <p>I do</p>
  
  <pre><code>catch(Exception)
  {
      throw;
  }
  </code></pre>
  
  <p>I don't get the above error, but I only get the exception message and no inner exception.
  What am I doing wrong?</p>