Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

can not connect to https site using CSOM

$
0
0

Hi guys

I'm working with CSOM to connect to SH site in 2010 outside the company, when I run the following code I receive a 403 forbidden error.

Is there any way to connect to https Sh sites? test in IE and run ok using windows Aut. without certificate

Do you have any idea?

System.Net.NetworkCredential credentials = new System.Net.NetworkCredential("xxxx", "xxx", "xx");
string siteUrl = "https://partner.coca-cola.com/sites/LARFC";
ClientContext clientContext = new ClientContext(siteUrl);
clientContext.AuthenticationMode = ClientAuthenticationMode.Default;
clientContext.Credentials = credentials;
Web site = clientContext.Web;
clientContext.Load(site);
clientContext.ExecuteQuery();
Console.WriteLine("Title: {0}", site.Title);


Ramiro B


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>