title: MVC3 ASPX view object does not contain definition
body: <p>I started this project using MVC2, but changed to the MVC3 dll.</p>
  
  <p>I have an Asset entity. In the controller I have the Details ActionResult defined like this:<br>
  <strong><em>EDIT: (Put the correct controller code.)</em></strong></p>
  
  <pre><code>    public ActionResult Details(int id)
      {
          using (var db = new AssetsContainer())
          {
              return View(db.Assets.Find(id));
          }
      } 
  </code></pre>
  
  <p>My Details.aspx page is defined this way: </p>
  
  <pre><code>&lt;%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage&lt;CITracker.Models.Asset&gt;" %&gt;  
  &lt;%@ Import Namespace="CITracker.Models" %&gt;  
  &lt;asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"&gt;  
  Details  
  &lt;/asp:Content&gt;  
  
  &lt;asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"&gt;
  
  &lt;h2&gt;Details&lt;/h2&gt;
  
  &lt;fieldset&gt;
      &lt;legend&gt;Fields&lt;/legend&gt;
  
      &lt;div class="display-label"&gt;Id&lt;/div&gt;
      &lt;div class="display-field"&gt;&lt;%: Model.Id %&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I get this error:  </p>
  
  <pre><code>CS1061: 'object' does not contain a definition for 'Id' and no extension method 'Id' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)
  </code></pre>
  
  <p>Any ideas why this was working with MVC2 but fails with MVC3? I don't get develop time errors, but I do get runtime errors.</p>