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 Saturday, December 29, 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

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

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

Sunday, December 30, 2007 10:14 PM by Nicolo Pitsch

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

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

Friday, March 28, 2008 10:08 AM by ryan

Where do you put that import statement?

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

Friday, March 28, 2008 12:35 PM by Ken Cox [MVP]

>Where do you put that import statement?

At the top of the .aspx page.

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

Monday, April 14, 2008 4:51 PM by Lennie De Villiers

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

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

Friday, April 10, 2009 10:22 AM by win

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

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

Wednesday, August 26, 2009 2:40 PM by Peter

Thanks!

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

Monday, November 30, 2009 4:42 PM by Shahrukh Khan

Thanks!!!

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

Thursday, March 11, 2010 9:32 AM by bas

Thanks! Saved a lot of time for a .net newbie!

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

Wednesday, June 23, 2010 4:02 AM by digidumb

Thanks! You saved my time

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

Wednesday, September 07, 2011 12:10 PM by Dave

Thanks buddy. To those developing winforms projects.

Go to Project properties, References tab, and add the System.Linq namespace from the imported namespaces list.

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

Tuesday, November 22, 2011 11:19 AM by Dana

Thank you so much! I'm new to LINQ and you've saved me a bunch of time!

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

Friday, December 09, 2011 9:43 AM by Jaspreet

Thanks a lot for the info ! saved time...

Leave a Comment

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