No generic method 'Where' on type 'System.Linq.Queryable'‏
 am getting the following error on the code below.
"No generic method 'Where' on type 'System.Linq.Queryable' is compatible with the supplied type arguments and arguments. No type arguments should be provided if the method is non-generic."

I've search the web for solution without much help. The following problem looks similar, but I am unable to duplicate the solution (http://stackoverflow.com/questions/8077086/no-generic-method-where-on-type-system-linq-queryable-is-compatible-with-the)

    private IEnumerable<CompCard> TranslateInto(Query query)
            {
                IQueryable<CompCard> queryableData = privateListOfCompCard.AsQueryable();
                if (query.Criteria != null)
                {
                    foreach (Criterion criterion in query.Criteria)
                    {
                        ParameterExpression pe = Expression.Parameter(typeof (string), criterion.PropertyName);
                        Expression right = Expression.Constant(criterion.Value);
                        Expression equal = Expression.Equal(pe, right);
    
                        MethodCallExpression whereCallExpression = Expression.Call(
                            typeof(Queryable),
                            "Where",
                            new[] {queryableData.ElementType},
                            queryableData.Expression,
                            Expression.Lambda<Func<string, bool>>(equal, new[] {pe}));
    
                        IQueryable<CompCard> resulList = queryableData.Provider.CreateQuery<CompCard>(whereCallExpression);
                        return resulList.ToList();
                    }
                }
    
                return privateListOfCompCard;
            }

The code that I created is a sample I took from http://msdn.microsoft.com/en-us/library/bb882637.aspx, but I can't get it to work for my specific sample.

I appreciate any help.
No generic method 'Where' on type 'System.Linq.Queryable'‏
===

 am getting the following error on the code below.
"No generic method 'Where' on type 'System.Linq.Queryable' is compatible with the supplied type arguments and arguments. No type arguments should be provided if the method is non-generic."

I've search the web for solution without much help. The following problem looks similar, but I am unable to duplicate the solution (http://stackoverflow.com/questions/8077086/no-generic-method-where-on-type-system-linq-queryable-is-compatible-with-the)

    private IEnumerable<CompCard> TranslateInto(Query query)
            {
                IQueryable<CompCard> queryableData = privateListOfCompCard.AsQueryable();
                if (query.Criteria != null)
                {
                    foreach (Criterion criterion in query.Criteria)
                    {
                        ParameterExpression pe = Expression.Parameter(typeof (string), criterion.PropertyName);
                        Expression right = Expression.Constant(criterion.Value);
                        Expression equal = Expression.Equal(pe, right);
    
                        MethodCallExpression whereCallExpression = Expression.Call(
                            typeof(Queryable),
                            "Where",
                            new[] {queryableData.ElementType},
                            queryableData.Expression,
                            Expression.Lambda<Func<string, bool>>(equal, new[] {pe}));
    
                        IQueryable<CompCard> resulList = queryableData.Provider.CreateQuery<CompCard>(whereCallExpression);
                        return resulList.ToList();
                    }
                }
    
                return privateListOfCompCard;
            }

The code that I created is a sample I took from http://msdn.microsoft.com/en-us/library/bb882637.aspx, but I can't get it to work for my specific sample.

I appreciate any help.