I am trying to see all the lists in my Site using sharepoint Client Object model , following is my code
using (ClientOM.ClientContext ctx =
new ClientOM.ClientContext(UrlTextBox.Text))
{
//Get the site
ClientOM.Web site = ctx.Web;
ctx.Load(site);
//Get Lists
ctx.Load(site.Lists);
//Query
ctx.ExecuteQuery();
}
The above code throws following Error "The remote server returned an error: (500) Internal Server Error" Tried passing in the credentials too, but didn't work, tried passing DefaultNetworkCredentials too. No luck..
Please advice.