Linq + Invalid expression term '>'

.net, c#, linq

Solution

Well, here was the answer..

I changed the project to target .NET 3.0, tried to compile got all kinds of errors, changed it back to 3.5 and it compiled fine.

I musta had an old reference in there from something.

Problem

Can anyone help me here, the following works fine on my xp but not my vista machine. Im querying a Generic dictionary. Both computers have .NET 3.5 + SP1, 3.0, 2.0, etc., and have the web project targeted to 3.5 Framework. ``` using System.Linq; string val = "Test"; var d = DictionaryOfStuff().Where(n => n.Key.ToLower().Contains(val.ToLower())); ``` Gives me the error: CS1525: Invalid expression term '>' I can run this in a differnet project on vista, I have IIS configured to use .NET 2.0 and the project in VS targeted at 3.5 I have even tried adding this to the web.config, it compiles fine w/o any lambda/linq

Original source