Skip to main content

Posts

Showing posts from August, 2011

Load/Retrieve SharePoint List Items Using CAML in Client Object Model

  you can use following code segment to load data from SharePoint list using client object model. Microsoft.SharePoint.Client DLL should get from the 14/BIN folder. ClientContext clientContext = new ClientContext( siteUrl ); clientContext.Load(clientContext.Web); Microsoft.SharePoint.Client.List oList = clientContext.Web.Lists.GetByTitle( tasklistName ); clientContext.Load(oList); Microsoft.SharePoint.Client.CamlQuery cm = new CamlQuery(); cm.ViewXml = “<View>Some Query</View>” ; Microsoft.SharePoint.Client.ListItemCollection items = oList.GetItems(cm); clientContext.Load(items); clientContext.ExecuteQuery();

An entry has been added to the Windows event log of the server. Log ID:7893

This error cause to have an error occurred querying a data source in InfoPath when trying to query User profile service. This error is very strange because it is happening only some times . most of the time in the first time.   I found that following workout resolve the problem. in here i change the User profile service running application pool identity to someone who had access in the user profile service sharing. Following are the steps.. Then go to advanced settings and change the identity.   Make sure the account has accessed in user profile service sharing.