1
context = new TestingDataContext(new Uri(SPContext.Current.Web.Url + "/_vti_bin/listdata.svc"));

We are getting the context for classic mode authentication SharePoint site, but for FBA(claims based authentication) configured we are not able to access the list and getting time out error.

Tried to pass the default credentials:

context.Credentials = System.Net.CredentialCache.DefaultCredentials;

It is throwing time out error while accessing list.

Shruti
  • 1
  • 13
  • 55
  • 95

1 Answers1

1

According to the web at large, REST services are not anonymous-access-capable. There is some discussion that you might be able to get around it using the Secure Store Service, but I do not have the specifics about that.

Matt
  • 1,213
  • 14
  • 39