I'm working with SharePoint 2013 and trying to return all the lists that exist within a Site URL. I've tried the code below, but it returns an initialization error. How can I properly return these lists?
foreach (List li in clientContext.Web.Lists)
{
Console.WriteLine(li.Title);
}
Console.Read();