Wednesday, 23 April 2014

Exception of type Microsoft.SharePoint.SoapServer.SoapServerException was thrown

Exception of type Microsoft.SharePoint.SoapServer.SoapServerException was thrown
Solution:
However I checked my syntax on my code which was:
UserGroup.AddAttachment(FileName, bytestream,ListName, ListItemID);
And I found that I had the items in the string the wrong was round. They should have been:
UserGroup.AddAttachment(ListName, ListItemID, FileName, bytestream);
Then the error went away!