title: EF Migrations error: could not load type 'System.Data.Entity.Infrastructure.DbContextInfo'
body: <p>I am using ContosoUniversity example. I have just used Nuget to download and install code first migrations pakage. Whe I excecute <code>update-database</code> command it throws an error . Is there anything to do more than installing nuget package?</p>
  
  <pre><code>Update-Database : Could not load type 'System.Data.Entity.Infrastructure.DbContextInfo' from assembly 'EntityFramework, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
  At line:1 char:16
  + update-database &lt;&lt;&lt;&lt; 
      + CategoryInfo          : NotSpecified: (:) [Update-Database], TypeLoadException
      + FullyQualifiedErrorId : System.TypeLoadException,System.Data.Entity.Migrations.Commands.MigrateCommand
  </code></pre>
  
  <p><strong>Edit ,</strong> 
  Now I have installed <code>ADO.NET Entity Framework 4.1 - Update 1</code>  and now it throws an error </p>
  
  <pre><code>Update-Database : The project 'ContosoUniversity' does not contain or reference any contexts.
  At line:1 char:16
  + update-database &lt;&lt;&lt;&lt; 
      + CategoryInfo          : NotSpecified: (:) [Update-Database], InvalidOperationException
      + FullyQualifiedErrorId : System.InvalidOperationException,System.Data.Entity.Migrations.Commands.MigrateCommand
  </code></pre>
  
  <p>I have tried the scenario in microsoft blog  but nothing changed. ( <a href="http://blogs.msdn.com/b/adonet/archive/2011/07/27/code-first-migrations-august-2011-ctp-released.aspx" rel="nofollow">http://blogs.msdn.com/b/adonet/archive/2011/07/27/code-first-migrations-august-2011-ctp-released.aspx</a> )</p>