Search code examples
asp.net-mvc-2system.data

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


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?


Solution

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