title: Paging Issue SP 2010 with C#
body: <p>Paging is not working in here, the error it says : The query expression is not supported.
  Error occurs in this line:<br>
  clientContext.Load(listItems, itms => itms.Skip((PageNumber - 1) * PageSize).Take(PageSize));</p>
  
  <p>Could someone advise Please?</p>
  
  <p>Thanks</p>
  
  <pre><code>    /// &lt;summary&gt;
      /// Method to return list of documents of a specific document library
      /// &lt;/summary&gt;
      /// &lt;param name="docLibaryName"&gt;&lt;/param&gt;
      /// &lt;returns&gt;&lt;/returns&gt;
      public List&lt;Document&gt; GetDocumentsByLibraryName(string spURL, string docLibaryName, int PageSize, int PageNumber)
      {
  
          List&lt;Document&gt; docList = new List&lt;Document&gt;();
          //Access the Document Library
          ClientContext clientContext = new ClientContext(spURL);
          List sharedDocumentsList = clientContext.Web.Lists.GetByTitle(docLibaryName);
  
          //Specify the Caml Query
          CamlQuery camlQuery = new CamlQuery();
          camlQuery.ViewXml =
              @"&lt;View Scope='Recursive'&gt;&lt;/View&gt;";
          ListItemCollection listItems = sharedDocumentsList.GetItems(camlQuery);
           clientContext.Load(listItems, itms =&gt; itms.Skip((PageNumber - 1) * PageSize).Take(PageSize));
          clientContext.ExecuteQuery();
          AddItemsToDocumentCollection(docList, listItems);
          return docList.ToList();
      }
  </code></pre>