Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

GetVersionCollection - Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.

$
0
0

HI,

I am trying to use the "GetVersionCollection" from the lists.asmx (CSOM + console application)

I added the webservice, and used the below code:

//listId contains the GUId in a string variable.

listId = "{" + listId + "}";

FetchListVersion.Lists listsservice = new FetchListVersion.Lists();

listsservice.UseDefaultCredentials = true;

XmlNode ndVersions = listsservice.GetVersionCollection(listId, ItemId, "_UIVersionString");

foreach (XmlNode version in ndVersions.ChildNodes)
{
Console.WriteLine(version.Attributes["_UIVersionString"].Value);
 }

I am getting the error as below:

System.Web.Services.Protocols.SoapException was unhandled
  HResult=-2146233087
  Message=Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.
  Source=System.Web.Services
  Actor=""
  Lang=""
  Node=""
  Role=""
  StackTrace:
       at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

How to fix this?

Thanks


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>