title: Serialization error while sending data table to WCF service
body: <blockquote>
    <p>There was an error in serializing body of message Method1: 'There was an error generating the XML document.'</p>
  </blockquote>
  
  <p>I am getting this error when I am trying to pass a data-table as a parameter to a WCF method, I have already used such type of methods (that is <code>DataTable</code> as parameter) in my WCF service, that works fine.</p>
  
  <p>However in this case, I think the reason could be the size of the <code>DataTable</code>, not sure though.</p>
  
  <p>Already tried increasing <code>maxReceivedMessageSize</code>, <code>maxBufferSize</code> and <code>maxStringContentLength</code> to 5242880 that is 5 MB (which I think is more than enough), but no luck.</p>
  
  <p>Found many related articles, but no one pointing to this particular issue, hence posted.</p>
  
  <p>Please guide.</p>
  
  <p><strong><code>Update:</code></strong></p>
  
  <p>My <code>DataTable</code> also contains contains some XML contents, can this be the issue, since this is serialized in XML format.</p>