title: Cast error on same Class on recompile
body: <p>I am getting a strange error when I am upating a project on a website.</p>
  
  <blockquote>
    <p>[A]StDataAccess.AgentInfo cannot be cast to [B]StDataAccess.AgentInfo.<br>
    Type A originates from 'App_Code.mwvc4o1b, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'Default' at location 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\online_7\b2fb7384\92a5cc98\App_Code.mwvc4o1b.dll'.<br>
    Type B originates from 'App_Code.05yjxsnv, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'Default' at location 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\online_7\b2fb7384\92a5cc98\App_Code.05yjxsnv.dll'.</p>
  </blockquote>
  
  <p>As you can see, the Namespace/Class is the same, I did not change anything to that class between compilations, but I changed to another class in the parent namespace (StDataAccess). AgentsInfo is a pretty simple class, with 10 properties (string/int). Nothing complex. The error happens while I am retriecing this class from a session:</p>
  
  <pre><code>AgentInfo ag = (AgentInfo) HttpContext.Current.Session["AgentInfo"];
  </code></pre>
  
  <p>Any ideas?</p>