Patrick

Patrick

  • NA
  • 1
  • 3.8k

Sharepoint Silverlight Error Message LAMBDA EXPRESSION - please help!

Apr 7 2011 1:40 AM
Hello,

I'm new in developing Sharepoint Applications.

So I started a new project for Silverlight.

I created a method called makeProgressWebConnection() for getting a connection to a list of sharepoint.

Here is the code:

void makeProgressWebConnection()




{
Loader.Value++;
Status.Text = "Web Connected. Connection to media stores...";BaseType.DocumentLibrary && !list.Hidden));
clientCtx.Load(clientCtx.Web.Lists, lists => lists.Include(list => list.Title, list.Id).Where(list => list.BaseType==
clientCtx.ExecuteQueryAsync(updateLists, errUpdateLists);
}


But when I afterwards want to deploy the project, I got an error:
the name "list" does not exist in the current context.
Cannot convert lambda expression to type 'System.Linq.Expressions.Expression<System.Func<Microsoft.Sharepoint.Client.ListCollection,object>>[]' because it is not a delegate type


So what is wrong with this code?
I copied the code out of a book.
Greets





Answers (1)