Build error complaining that it cannot find System.Data.Entity in asp.net application

622 Views Asked by At

I'm building an ASP.net application using Visual Studio Web Developer 2010 Express and have followed the Nerd Dinner tutorial for a large part. The problem is that when I try to build, it is constantly giving me a build error saying:

Error 43 Could not load file or assembly 'System.Data.Entity, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

This error is coming from the file "ASPNETCOMPILER" apparently. Some things that I have already checked are:

  1. There is a reference to System.Data.Entity in the project references already.
  2. I have .Net 4.0 installed on the system.

Any ideas on what could be wrong?

2

There are 2 best solutions below

0
Vinayak Suley On BEST ANSWER

Posting back for community goodness, the first comment in this thread by "DonSleza4e" seemed to solve my problem.

1
Jesse McCulloch On

Try copying the System.Data.Entity.dll into your bin folder, or target your system to use .NET 2.0, as that should copy it over automatically.