I am working on a SharePoint site, and I want to parse the owner of the site from the API. I am currently using the following code:
var credentials = new SharePointOnlineCredentials(userName, securePassword); cc.Credentials = credentials; //cc is client context Site web = cc.Site; cc.Load(web); cc.ExecuteQuery(); Console.WriteLine(web.Url);
I am occasionally getting a 503 Error when the execute query runs. Then I try to call the owner and that error persists. Do you know what causes the error and how I can get the owner of a sharepoint site through the api , either XML or Client object model?