Error in using hosted application using SharePointUtility.dll

Apr 9, 2010 at 3:17 PM
Edited Apr 12, 2010 at 7:14 AM

I am using SharePointUtility.dll in my code to connect to a sharepoint server to extract data from one of the views and use this data to synchronize tables in a SQL server.

I have multiple sites hosted on my sharepoint server e.g.,, , I am extracting data from "reports" list, "journal view" of each site above and updating reports_belgium, reports_italy, report_france tables in my SQL server.

Break down of my code

1) Creating uri for each site mybelgium = new uri ("");

2) Create filedname list .

3) execute ListServiceUtility.GetlistItemData to retrieve data from the view.

The code is running fine on my devlopment machine (ASP server), but is breaking when hosted on my test server(on IIS), my hosted site is using IWA, share point site is also using windows authentication.

Its throwing the following error,

The HTTP request is unauthorized with client authentication scheme 'Ntlm'. The authentication header received from the server was 'NTLM'.

However when I try to use host header (using IP address as well) like http://<myserver>:80/notices/belgium/_vti_bin/lists.asmx

It is throwing the following error on devlopement machine also,

There was no endpoint listening at http://<myserver>/notices/belgium/_vti_bin/lists.asmx that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details."} System.Exception {System.ServiceModel.EndpointNotFoundException}