I am trying to create a sub-site and some predefined lists in the existed site collection. I am successfully created the sub site in the site. But Now i want to create lists in that newly created site. But I am not able to get the context of the newly created site. How to get the context of the newly created site from the sharepoint app. I am using auto hosted app model for office 365 account. Finally I tried in this old way.
using (ClientContext subSiteContext = new ClientContext(new Uri(newWeb.Url)))
{
DeployLists(subSiteContext, templateConfig);
}
But I am getting exception as
The remote server returned an error: (403) Forbidden.
How to get the context of sub site.