I\'m writing an application that accesses a SharePoint site using the Client Object Model and I\'m behind a proxy server.
I call...
ClientContext.Execute
You will need to pass the WebProxy (System.Net.WebProxy) object to the WebRequest instance executing your query. One way of doing this is
ClientContext context = new ClientContext("");
context.ExecutingWebRequest += (sen, args) =>
{
WebProxy myProxy = new WebProxy();
myProxy.Address = new Uri("http://");
myProxy.Credentials = new System.Net.NetworkCredential("jack_reacher","", "");
args.WebRequestExecutor.WebRequest.Proxy = myProxy;
};
context.ExecuteQuery();
Edit: Fixed typo (ags --> args)