I can't access a subsite in Sharepoint 2010 online - Error The remote server returned an error: (404) Not Found. But the root site works.So if i change the siteURL tohttps://sample.sharepoint.com/subsite/ i get error:
Error The remote server returned an error: (404) Not Found.
Any ideas and thanks in advance.
MsOnlineClaimsHelper claimsHelper =newMsOnlineClaimsHelper("user@microsoft.com.au","password","https://sample.sharepoint.com/");using(ClientContext context =newClientContext("https://sample.sharepoint.com/")){
context.ExecutingWebRequest+= claimsHelper.clientContext_ExecutingWebRequest;
context.Load(context.Web);
context.ExecuteQuery();Response.Write("Name of the web is: "+ context.Web.Title);}