title: ASP.net page gets error on import statement, but I do have the reference in place?
body: <p>Any ideas why I am getting the below error in my MVC2 project, even through in the project itself I definitely have a reference to "system.Web.Entity"? </p>
  
  <pre><code>Compiler Error Message: CS0234: The type or namespace name 'Entity' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)
  
  Source Error:
  
  Line 1:  &lt;%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage&lt;List&lt;Node&gt;&gt;" %&gt;
  Line 2:  &lt;%@ Import Namespace="TopologyDAL" %&gt;
  Line 3:  &lt;%@ Import Namespace="System.Data.Entity" %&gt;
  </code></pre>
  
  <p>thanks</p>
  
  <p>EDIT - By the way if I take out Line 3 then I get the error:</p>
  
  <pre><code> Compilation Error
  Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
  
  Compiler Error Message: CS0012: The type 'System.Data.Objects.DataClasses.EntityObject' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
  
  Source Error:
  
  Line 164:    
  Line 165:    [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
  Line 166:    public class views_node_index_aspx : System.Web.Mvc.ViewPage&lt;List&lt;Node&gt;&gt;, System.Web.SessionState.IRequiresSessionState, System.Web.IHttpHandler {
  Line 167:        
  Line 168:        private static bool @__initialized;
  
  
  Source File: c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\6ec16fd2\a2147d7c\App_Web_index.aspx.1b64bdf1.ajruf7pv.0.cs    Line: 166 
  </code></pre>