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 using System.Linq; 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 System.Linq does not exist.
The website works fine on my home machine where I’m developing it with VS2010 installed.
What’s the problem?
The default application pool is 2.0, rather than 4.0 (unhelpful default), which also explains why VS2010 ran it fine- it knew that it was a 4.0 application. Once I changed this, everything is working smoothly.