Reputation: 1786
I updated my visual studio with update 4 and using EntityFramework 6.1.1, and since then I'm having problems connecting projects to MySQL.
I followed this tutorial and before everything was working good, but now with the new update I'm getting errors:
The IdentityModel:
static ApplicationDbContext()
{
Database.SetInitializer(new MySqlInitializer());
}
public ApplicationDbContext()
: base("DefaultConnection", throwIfV1Schema: false)
{
}
public static ApplicationDbContext Create()
{
return new ApplicationDbContext();
}
//public DbSet<ApplicationUser> ApplicationUsers { get; set; }
public DbSet<Settings> Settings { get; set; }
Here my tests if someone could take a look.
The error:
An exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll but was not handled in user code
Additional information: Exception has been thrown by the target of an invocation.
and
Could not load type 'System.Data.Entity.Infrastructure.TableExistenceChecker' from assembly 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
on:
public ApplicationDbContext()
: base("DefaultConnection", throwIfV1Schema: false)
My question now is what this mean? and can I fix this?
Upvotes: 0
Views: 1721
Reputation: 11
I thought it was just me who was having this problem! It starts when you perform the upgrade to the Entity Framework 6.1.2!
The only solution I found for now, was to perform the downgrade to 6.1.1 version of Entity Framework.
Hope that helps!
Upvotes: 1