I downloaded the source code for the SharepointUtility Library.
I altered the code to put everything inside the same namespace. I have altered the namespace of the project, to make it easier to use. However, after putting every object in code inside this namespace, a few things break!
Private Function GetSharePointListItems( _
ByVal listName As String, ByVal viewId As String, ByVal queryXml As XElement, _
ByVal viewXml As XElement, ByVal pagingSize As Short, _
ByVal queryOptionsXml As XElement) As XElement
Dim client = _sharepointClient
Return client.GetListItems(listName.Trim(), viewId, queryXml, viewXml, pagingSize, queryOptionsXml, Nothing)
Catch ex As System.ServiceModel.FaultException
Throw New SharePointUnhandledException("Unspecified SharePoint Error. A possible reason might be you are trying to retrieve too many items at a time (Batch size)", ex)
The line in Red Breaks with the Error "Value of type 'System.Xml.Linq.XElement' cannot be converted to 'System.Xml.XmlElement'."
How did this work before the namespace change??
Was the ClientSide Code (the coe that talks to the sharepoint list service) modified from the generated source to utilize
System.Xml.Linq instead of
Mar 3, 2010 at 5:10 PM
That is discussed in a closed issue: