0

Error:

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'.

As you can see my Entity Framework is complaining at the reference, tried to solve it but got nowhere. Has someone experienced this problem before? I'm basically trying to do this: http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-api

radu florescu
  • 4,315
  • 10
  • 60
  • 92
poseidon23
  • 59
  • 3
  • 12

1 Answers1

0

Go to your solution and follow this steps(provided that you use a downloaded zip from the page you specified):

  • Right click on sln node and Enable Nuget package restore, then rebuild you sln.
  • If not already installed try open the Manage Nuget Package and check EF is installed.
  • Would not recommend loading dll by hand, but you can try adding it.
radu florescu
  • 4,315
  • 10
  • 60
  • 92