Linq + Invalid expression term '>'

Can someone help me here, the following works fine on my xp, but not on my Vista machine. Im asking for a general dictionary.

Both computers have .NET 3.5 + SP1, 3.0, 2.0, etc. and have a web project focused on the 3.5 Framework.

using System.Linq;
string val = "Test";
var d = DictionaryOfStuff().Where(n => n.Key.ToLower().Contains(val.ToLower()));

Gives me an error: CS1525: invalid term expression '>'

I can run this in a differnet project on Vista, I have configured IIS to use .NET 2.0 and the project in VS, oriented to 3.5 I even tried adding this to web.config, it compiles fine with any lambda / linq

+5
source share
4 answers

Well, here was the answer.

.NET 3.0, , 3.5 .

, , -.

+10

, Vista , - 2.0 3.5. , , .

,

  • IIS
  • .
+4

"val" ? . "n.Value"?

0

schmoopy you rock:) Visual studio: P : P

http://www.hyperlinksolutions.net http://barchitect.blogspot.com

0

All Articles