The type 'System.Data.Entity.DbContext' is defined in an assembly that is not referenced. You must add a reference to assembly 'EntityFramework 2

后端 未结 10 791
无人共我
无人共我 2021-02-02 05:37

I\'ve got one solution - the one project is class library with .edmx data model The other is asp.net web forms project.

when i start the solution I get the following e

10条回答
  •  不要未来只要你来
    2021-02-02 06:36

    I had the same problem and I finally solved it. what you should do is to uninstall every instance of entity framework on your pc. If you have installed it using the setup file you have to remove it from add/remove programs and if you have installed it using the nugget packages, you have to uninstall it from there.

    Then you install in again using the nugget packages and restart your visual studio. This solved my problem.

提交回复
热议问题