title: KnownType related error with WCF serialization
body: <p><strong>Background</strong></p>
  
  <p>I have a client application that connects to a WCF backend. It calls a specific action and expects a very large object result.</p>
  
  <p>When I attach the WCF code to w3wp (WCF is hosted on IIS), I get into the expected method call and the code runs all the way to the <code>Return result</code> line.</p>
  
  <p>Doing a quick watch on the result reveals an object that, as far as I can humanly tell, matches exactly with my expectations. The fields that I expect to see filled in, contain logical values.</p>
  
  <p><strong>The problem</strong></p>
  
  <p>As soon as I skip beyond the <code>Return result</code> line, which is the very last that is called on the WCF call, I get this error:</p>
  
  <blockquote>
    <p>The thread 0x214c has exited with code 259 (0x103). 'w3wp.exe'</p>
  </blockquote>
  
  <p>And deeper</p>
  
  <blockquote>
    <p>Type 'full.namespace.MyResultType' with data contract name
    'MyResultType:' is not expected.  Consider using a
    DataContractResolver or add any types not known statically to the list
    of known types - for example,  by using the KnownTypeAttribute
    attribute or by adding them to the list of known types passed to
    DataContractSerializer.</p>
  </blockquote>
  
  <p><strong>The question</strong></p>
  
  <p>What do I do to solve this? As the error occurs within third-party code (I assume the WCF serialization process), I can't find out anything more than what I have (that I know).</p>