title: Parameter count mismatch error in RestSharp?
body: <pre><code>public IRestResult Send(MessageEnvelope envelope)
  {          
      var request = new RestRequest(Method.POST);
      request.AddBody(envelope);
      request.RequestFormat = DataFormat.Json;
      var responce = _restClient.Execute(request);
      return new RestResult
      {
          Success = responce.StatusCode == HttpStatusCode.OK,
          ErrorMessage = responce.Content
      };
  }
  </code></pre>
  
  <p>When I pass the <code>envelpoe</code> value I had a runtime error call </p>
  
  <pre><code>Parameter count mismatch
  </code></pre>
  
  <p>in the line containing <code>request.AddBody(envelope);</code>.</p>
  
  <p>(when I add values to <code>AddBody</code> method).</p>
  
  <p>How can I fix this?</p>