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
So what is wrong with this code?
I copied the code out of a book.
Greets
VulpesPosted Apr 7, 2011, 10:29 AM
BaseType.DocumentLibrary && !list.Hidden));
If there are two right brackets at the end, then there should be two left brackets somewhere else in the line but there aren't any.
Another thing I notice is that 'list' appears both in the above line and as an 'implied' variable in the lambda expression so it's not clear which of them is giving the 'not defined in the current context' error.