0

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?

Gelatin
  • 2,393
  • 1
  • 24
  • 29
Vinayak Suley
  • 537
  • 5
  • 9

2 Answers2

0

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.

Jesse McCulloch
  • 683
  • 4
  • 13
  • that didn't seem to solve the issue. Copying the dll into the bin folder still makes it complain; besides, this wouldn't solve the problem permanently, if I cleaned my project then the problem would reappear, correct? And I can't really change the target version - it needs to be .net 4.0. – Vinayak Suley Mar 08 '11 at 23:34
0

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

Vinayak Suley
  • 537
  • 5
  • 9