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.