tags:

views:

319

answers:

5

I am getting the following error:

Could not load file or assembly 'System.Web.DynamicData, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

I've researched the problem and some of the solutions are pointing to Turning on Assembly Binding Logging.

I'm confused as to what this error is. So my question:

*What does this error mean and how do I resolve it? I am not hosting the site in a shared hosting scenario, it is on a single server running .NET Framework 3.5.0 using IIS 6.0

Edit .Net Framework 3.5 SP 1 isn't installed on the server. The missing assemblies are apart of that Service Pack.

A: 

If you're in Visual Studio; remove the reference to the assembly, and then re-add it by hunting it down on the file system, or if it's in the GAC (c:\windows\assembly)

surdipkrishna
A: 

I've found the solution. It appears that on our dev machines we are running Framework 3.5.1 but running 3.5.0 on the server.

Achilles
+1  A: 

Are you certain that the SP1 is installed for .NET 3.5?

Marek Karbarz
A: 

And what if I need to run the project on .net 2.0 and I've selected the option to compile it in 2.0 and still it shows me this error?

I'm sure I don't need the 3.5 version of the assembly, and I've customers with windows 2000, so I've compiled it on 2.0 thinking it's enought, but when the application open a db it shows: Could not load file or assembly 'System.Web.DynamicData, Version=3.5.0.0 etc.. etc...

What can I do?

Cirunz
This is a web config problem. Remove the assembly references from the web config file and that should fix your problem.
Achilles
A: 

pls give proper solution

pradeep
See the edit in the question.
Achilles