title: Unable to sending complex object through WCF
body: <p>I have a ServiceContract as such :</p>
  
  <pre><code>    bool CreateSlideshow(Slideshow current, string path, string name);
  </code></pre>
  
  <p>When I run my program calling the service, I get the following exception :</p>
  
  <blockquote>
    <p><em>There was an error while trying to serialize parameter
    <a href="http://tempura.org/:current" rel="nofollow">http://tempura.org/:current</a>. The InnerException message was 'Type
    'System.DelegateSerializationHolder+DelegateEntry' with data contract
    name
    'DelegateSerializationHolder.DelegateEntry:http://schemas.datacontract.org/2004/07/System'
    is not expected. Consider using a DataContractResolver or add any
    types not known statically to the list of known types.....</em></p>
  </blockquote>
  
  <p>Apparently the problem lies in <code>Slideshow</code>. My class <code>Slideshow</code> has the following members :</p>
  
  <pre><code>    private String name;
      private String path;
      private List&lt;Slide&gt; slides;
  </code></pre>
  
  <p>and the class <code>Slide</code> has the following members :</p>
  
  <pre><code>    private String title;
      private ContentTypeEnum contentType;
      private String textContent;
      private String pictureContextPath;
  </code></pre>
  
  <p>where <code>ContentTypeEnum</code> is an enumeration.</p>
  
  <p>Any idea how to resolve the exception? Hope for some advice/suggestions. Thanks in advance.</p>