asp.net mvc 3 - Entity Framework version error in my small code first project -


I am writing a small test project to wet my feet with the EF code for the first time, unfortunately, when I try to compile, I get the following error:

  assembly uses backend, version = 1.0.0.0, culture = neutral, public key token = zero 'Entity Framework , Version = 4.3.1.0, culture = neutral, public key token = b77a5c561934e089 'which refers to the assembly The higher version is 'EntityFramework, version = 4.1.0.0, culture = neutral, public keynote = b77a5c561934e089' c: \ Users \ Kevin \ Documents \ Visual Studio 2010 \ Projects \ CFTest \ Backend \ bin \ Debug \ Backend.dll CFTest   

For some reason, a version is conflict, but I do not know how to fix it.

Edit: My app .config:

   & Lt; / ConfigSections & gt; & Lt; EntityFramework & gt; & Lt; DefaultConnectionFactory type = "System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" & gt; & Lt; Parameters & gt; & Lt; Parameter Value = "Data Source =. \ SQLEXPRESS; Integrated Security = True; MultipleActive ResetsSets = True" / & gt; & Lt; / Standards & gt; & Lt; / DefaultConnectionFactory & gt; & Lt; / EntityFramework & gt; & Lt; / Configuration & gt;  

There was a version of EF in my backend project, while my MVC project is by default Came with the second. solution.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -