none
Error on accessing SharePoint 2010 Lists from a VB.NET app by using WCF Data Services RRS feed

  • Question

  • I have a VB.NET application published to a server and basically I need to get all items from a SharePoint list and display them into a grid view.  I'm trying to accomplish that by using WCF Data Services, getting credentials as seen below. However I'm able to access this SharePoint list only when I test my application locally (localhost), when I publish to the server I no longer have authorization to do so, I then get the following error: (401) Unauthorized.

    I've tried granting access to my server ID in SharePoint, but no success.

    Does anyone have any idea on how to give access for the server to access my SharePoint list?

    Authentication:

    dc.Credentials = System.Net.CredentialCache.DefaultCredentials 

    Thanks in advance

    Tuesday, January 13, 2015 11:28 AM

Answers