This project is read-only.
1
Vote

Error Initializing Context

description

After installing SecurEntity via nuget package manager in a MVC 5 project, I get the following error when trying to run my code:
An exception of type 'System.MissingMethodException' occurred in Common.dll but was not handled in user code

Additional information: Method not found: 'System.Data.Objects.ObjectContext System.Data.Entity.Infrastructure.IObjectContextAdapter.get_ObjectContext()'.
Data context code:
public class MyDB: IdentityDbContext<User>
{
    public DbSet<Item> Items{ get; set; }

    public MyDB() : base("MyDB")
    {
        SecurEntityLib.DbContextHelper dch = new SecurEntityLib.DbContextHelper(this);
    }
}

comments