Reference to assembly error
Solution 1
open visual studio and go to tools bar open Nuget package manager and open nuget package manager console and install Entity framework just paste this into the console window:
Install-Package EntityFramework
Solution 2
1) Uninstall Entity Framework from All projects
2) Restart Visual Studio
3) Reinstalling Entity Framework to all required projects
and it started working
mr. Holiday
Updated on June 10, 2022Comments
-
mr. Holiday almost 2 years
I've implemented the RoleProvider class, there I created Domain class object which is in another assembly, my assembly has a reference to that one.
Error 3 The type 'System.Data.Entity.DbContext' is defined in an assembly that is not referenced. You must add a reference to assembly 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. D:\Visual Studio 2013\Group 06\G06_Store\Store.Facade\StoreRoleProvider.cs 17 24 Store.Facade
How can I fix this error?