c# - Problems with EntityFramework.HierarchyId -


I try to add support for the use EntityFramework.HierarchyId Nuget package HierarchyId datatype, problems within the EF 6 is that everytime I package and tries to project, I get the following error:

error 3 type 'System.Data.Entity.DbContext' is defined in an assembly, which is not referenced. You must add a reference to the assembly 'EntityFramework, version = 6.0.0.0, culture = neutral, publicKeyToken = b77a5c561934e089'. >

If I remove the package and restore the EF 6.1 problem has ended.

This is in my web .config file:

  & lt; ConfigSections & gt; & Lt; Section name = "entityFramework" type = "System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version = 6.0.0.0, Culture = neutral, PublicKeyToken = 6847f3395fc61b47" requirePermission = "false" / & gt; & Lt; / ConfigSections & gt;   

If I tell the version to be an error, then the problem still remains:

  & lt; ConfigSections & gt; & Lt; Section name = "Antinafremvrk" type = "Sistmkdeta.antitikinanl. Confiffail. Antitifremvrkvivrn, Antitifremvrk, Version = 6.0.0.0, Culture = neutral, Pblikkey token = B 77 A 5 C 561 934 A 0 0 9 0" Avshyktapradrshn = "False" /> & Lt; / ConfigSections & gt;  

I think the conflict between your issues is EF.HiearachyId < / code> and Microsoft.Aspnet.Identity.EntityFramework because 'EntityFramework, version = 6.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089' . Can your problem get here you reflect it can fix:

  1. Microsoft.Aspnet.Identity.EntityFramework.dll and the code from it.
  2. Create and paste the new project code you copied.
  3. Change the reference Microsoft.Aspnet.Identity.EntityFramework . With my new project

    I think your problem will be resolved.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -