views:

854

answers:

2

We're getting an error when deploying a project to one of our client's servers. The system works fine in our local dev and staging environments. The error is:

The type or namespace name 'Linq' does not exist in the namespace 'System.Data'

We've done the obvious checks: - We have the references in the web.config for System.Data.Linq, System.Core, System.Linq, etc. - Our project's target framework is 3.5 - We have confirmed that the ASP.NET version in IIS on the client's server is 2.0.50727 - We have confirmed that the server has framework 3.5 installed and contains the System.Data.Linq DLL in the Windows/assemblies folder.

Any other ideas?

+3  A: 

Did you check to make sure the .Net service packs match as well? I.e. you're using .Net Framework 3.5 SP1 on both?

Orion Adrian
+1 - Just checked it and they were NOT on SP1 - nice one! Installing it now and we'll let you know how it goes.
Keith
After installing Framework 3.5 SP1, we continue to have the same issue. It was a great attempt, but the problem still exists unfortunately.
Keith
A: 

From here: 'You'll get this error if you don't have "System.Core.dll" referenced (the assembly which contains the core LINQ APIs). However, all of the default templates should include this reference when you target .NET3.5.'

Jason M
From my original post: "We have the references in the web.config for System.Data.Linq, System.Core, System.Linq, etc."
Keith