I'm attempting my first foray into the Client Object Model.
In the following code,
using (ClientContext context = new ClientContext(url)) // url works w- SPSite
{
Web web = context.Web;
context.Load(web);
Log.Debug("Loading web.");
context.ExecuteQuery();
}
The call to ExecuteQuery
throws an exception:
Unhandled Exception: System.Net.WebException: The remote server returned an error: (500) Internal Server Error. at System.Net.HttpWebRequest.GetResponse() at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute() at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder sb) at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()
With so little info, I'm a little lost on where to begin debugging. There is no traffic in the ULS relating to an event... just this simple exception. What can I look into?