Can't add LINQ to ASP.NET web page

piripocas

New Member
I've got a simple ASP.NET website, but I can't get it to work. The server is running IIS 7.5 with .NET 4.0 installed, and I've got complete access, and I'm using VS2010 to generate an ASP.NET 4 website. But VS automatically generates code-behind files with \[code\]using System.Linq;\[/code\] in them. This wouldn't be a problem for me except it doesn't seem to reference Linq by default. I added in the IIS Manager/site/.NET Compilation/Assemblies list the System.Data.Linq assembly, and I added a reference to it in the web config, but it's still complaining that \[code\]System.Linq\[/code\] does not exist.The website works fine on my home machine where I'm developing it with VS2010 installed.What's the problem?
 
Back
Top