Error when trying to Add-Migration in EF Code First Migrations–Alpha 3
Getting an exception like the below one when trying to add a migration with the shiny new Alpha 3 of migrations?
Add-Migration : 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
+ add-migration <<<<
+ CategoryInfo : NotSpecified: (:) [Add-Migration], TypeLoadException
+ FullyQualifiedErrorId : System.TypeLoadException,System.Data.Entity.Migrations.AddMigrationCommand
The solution is to uninstall Microsoft ADO.NET Entity Framework 4.1 RC. To be on safe side, restart Visual Studio after the uninstallation.
Read more about migrations: Code First Migrations: Alpha 3 Released and Code First Migrations: Alpha 3 ‘No-Magic’ Walkthrough.
