CS1660: Cannot convert lambda expression to type 'string' because it is not a delegate type

Posted by SheoNarayan under Error and Solution on 11/26/2010 | Points: 10 | Views : 20332 | Status : [Administrator] | Replies : 1

While working with Entity Framework, I got below error when I tried to select the data using LINQ in my code behind page.

CS1660: Cannot convert lambda expression to type 'string' because it is not a delegate type

This is strange, the solution is nothing to do with the message it shows.

Solution
Keep below using statement in the page.

using System.Linq;


and done!

Regards,
Sheo Narayan
http://www.dotnetfunda.com



Responses

Posted by: Lalji_mer on: 11/30/2010 [Member] Bronze | Points: 25

Up
0
Down
for discus try this link

http://social.msdn.microsoft.com/Forums/en/adodotnetentityframework/thread/ad34a9f1-2849-478d-9405-b07a54b09aaf

LP MER

SheoNarayan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response