PDA

View Full Version : The type or namespace name 'Linq' does not exist in the namespace 'System'


wisemx
01-28-2008, 01:16 AM
I'm not using Linq here but these are the assemblies in my 3.5 web.config currently:

[quote]

<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies></CODE>

devinb
01-28-2008, 04:10 AM
Is therea control panelconfiguration optionthat I mustset in order touse ASP.NET 3.5? I'm getting this error with VS2008 pages?


CS0234: The type or namespace name 'Linq' does not exist in the namespace 'System' (are you missing an assembly reference?)

I've easily fixed by removing the namespace from my code behind file, as I not using Linq at this point, was just under the impression that 3.5 was installed on the server and I didn't need to do anything to take advantage of it.

thanks,

Devin

bruce
01-29-2008, 06:46 AM
Linq is definitely installed. You may have the wrong assembly name.


Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

devinb
01-30-2008, 08:01 AM
Yes.. thanks to both replies. I was able to resolve this by creating a new web.config file and updating on the server.