Reference to assembly error

19,841

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

Share:
19,841
mr. Holiday
Author by

mr. Holiday

Updated on June 10, 2022

Comments

  • mr. Holiday
    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?