The property or field has not been initialized.
WPF
1
Posts
1
Posters
0
Views
1
Watching
-
Hi I am getting this error when I am trying to call sharepoint 2010 client object model in my silverlight application.**Error:The property or field has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.
**using (SP.ClientContext objSite = new SP.ClientContext("http://Sharepoint:80/"))
{SP.CamlQuery objCaml = new SP.CamlQuery(); objCaml.ViewXml = @""; SP.Web objWeb = objSite.Web; SP.List list = objWeb.Lists.GetByTitle("BackgroundImages"); listItems = list.GetItems(objCaml); objSite.Load(objWeb); objSite.Load(list); objSite.Load(listItems); objSite.ExecuteQueryAsync(Succeeded, Failed); }
Please help****