title: Microsoft.Sharepoint.Client.Context.Load error using F#
body: <p>I am trying to pull some documents from Sharepoint using the CSDOM Microsoft.Sharepoint.Client SDK.</p>
  <p>I have a basic query set up like this:</p>
  <pre><code>let uri = @&quot;XXXXXX&quot;
  let userName = XXXXXX
  let password = XXXXXX
  let networkCredential = new NetworkCredential(userName, password)
  let context = new ClientContext(uri)
  context.Credentials &lt;- networkCredential
  let list = context.Web.Lists.GetByTitle(&quot;XXXXXX&quot;)
  let listItemCollection = list.GetItems(CamlQuery.CreateAllItemsQuery())
  context.Load(listItemCollection)
  context.ExecuteQuery()
  </code></pre>
  <p>I am getting this error message on the load method</p>
  <blockquote>
  <p>error FS0193: internal error: GenericArguments[0],
  'Microsoft.SharePoint.Client.ListItemCollection', on 'Void Load[T](T,
  System.Linq.Expressions.Expression<code>1[System.Func</code>2[T,System.Object]][])'
  violates the constraint of type 'T'.</p>
  </blockquote>
  <p>I think I have to pass in the linq expression also?  This seems like a lot of unneeded steps as all I want to do is get a list of documents from a folder to iterate.</p>
  <p>Anyone have any alternative code?</p>