Sharepoint Utility DLL

Jan 24, 2010 at 7:36 PM

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
            Try
                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)
            End Try

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??

Coordinator
Jan 25, 2010 at 1:55 AM

You'll need to post this at http://www.codeplex.com/SQLSrvIntegrationSrv. We didn't create that particular component - just provided a link to it.