none
Retrieve document versions content (CSOM) RRS feed

  • Question

  • Hi,

    I'm able to retrieve the versions' properties (CSOM) but I have issues to download the previous versions of the files.

    I'm using the same code to download the current version of the doc (which works), but I get the following exception with versions:

    System.Collections.ListDictionaryInternal: Specified argument was out of the range of valid values.
    Parameter name: serverRelativeUrl :    at Microsoft.SharePoint.Client.File.MakeFullUrl(ClientContext context, String serverRelativeUrl)
       at Microsoft.SharePoint.Client.File.OpenBinaryDirect(ClientContext context, String serverRelativeUrl)

    I use version.Url as the serverRelativeUrl, which looks like "/_vti_history/512/mysite/myfile.txt". The ClientContext is on the site that holds the document.

    I also got the following exception on a 2013 online site:

    Server Exception: System.Collections.ListDictionaryInternal:

    Cannot invoke HTTP DAV request. There is a pending query. :    at Microsoft.SharePoint.Client.File.OpenBinaryDirect(ClientContext context, String serverRelativeUrl)

    Any idea ?

    Thanks!

    Thursday, April 10, 2014 3:28 PM

Answers