title: Binding to Navigation Property causes " A field or property with the name 'X.X' was not found on the selected data source" in IIS 6 ONLY
body: <p>I see that similar questions have been asked, but I don't think any of them specifically address the environmental difference that I'm seeing. I have an ASP.NET Web Forms application that contains a <code>GridView</code>, which I am manually binding to a collection of Entity Framework entities. I am using a <code>BoundField</code> that references a navigation property on one of my entities. </p>
  
  <p>Previous posts indicate that this isn't supported, but the entire solution works perfectly in IIS 7.5 running on Windows 7. However, when the application is deployed to the web server running IIS 6 on Windows Server 2003 R2, it fails with the <code>HttpException</code>: </p>
  
  <blockquote>
    <p>"A field or property with the name 'Worker.FullName' was not found on
    the selected data source."</p>
  </blockquote>
  
  <p>Here is a relevant summary of the code:</p>
  
  <p><strong>Entities:</strong></p>
  
  <pre><code>public class WorkerAssignment
  {
      public Guid Id { get; set; }
      public Guid WorkerId { get; set; }
  
      public virtual Worker Worker { get; set; }
  }
  
  public class Worker
  {
      public Guid Id { get; set; }
  
      public string FullName { get; set; }
  }
  </code></pre>
  
  <p><strong>ASPX:</strong></p>
  
  <pre><code>&lt;asp:GridView 
      ID="gvWorkers" 
      runat="server" 
      AutoGenerateColumns="False" 
      DataKeyNames="Id"
  &gt;
      &lt;Columns&gt;
          &lt;asp:BoundField 
              DataField="Worker.FullName" 
              SortExpression="Worker.FullName" 
              HeaderText="Worker Name" 
          /&gt;
      &lt;/Columns&gt;
  &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>Both servers are running .NET Framework 4.0.30319. <strong>What is the difference between IIS 7.5 and IIS 6 that is causing the code to function properly in the former environment and fail in the latter?</strong></p>