Expression of type 'System.Data.Linq.Table(Of xxx)' is not queryable

I don't recall getting this error so often in Visual Web Developer 2008 Beta 2 or the release candidate:

Expression of type 'System.Data.Linq.Table(Of xxx)' is not queryable. Make sure you are not missing an assembly reference and/or namespace import for the LINQ provider. 

It popped up several times while checking the code for ASP.NET 3.5 For Dummies against the release version of VWD.

The fix is as simple as following the error message suggestion; import the LINQ namespace:

<%@ Import Namespace="System.Linq" %>
Published 29 December 2007 12:11 PM by Ken Cox [MVP]

Comments

# Expression of type 'System.Data.Linq.Table(Of xxx)' is not queryable - WebLog of Ken Cox said on 29 December, 2007 03:37 PM

Pingback from  Expression of type 'System.Data.Linq.Table(Of xxx)' is not queryable - WebLog of Ken Cox

# Nicolo Pitsch said on 30 December, 2007 10:14 PM

Thanks a lot, I was struggling since hours with this!

# ryan said on 28 March, 2008 10:08 AM

Where do you put that import statement?

# Ken Cox [MVP] said on 28 March, 2008 12:35 PM

>Where do you put that import statement?

At the top of the .aspx page.

# Lennie De Villiers said on 14 April, 2008 04:51 PM

Oh my gotch!! I struggled for hours with this one... Thank you for the solution! :-) Regards Lennie

# win said on 10 April, 2009 10:22 AM

You have saved my time... Thank you so much!

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Search

Go

This Blog

Web Links

Syndication