Skip to content

How to connect to SharePoint 2010 #527

Answered by Maksim2030
Maksim2030 asked this question in Q&A
Discussion options

You must be logged in to vote

net45 project
I'm using ClientContext from assembly: Microsoft.SharePoint.Client, Version=16.1.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c
Assembly location: ...\.nuget\packages\microsoft.sharepointonline.csom\16.1.20122.12000\lib\net45\Microsoft.SharePoint.Client.dll

It works for net45 project
ClientContext context = new ClientContext(onpremSiteUrl);
context.Credentials = new NetworkCredential(onpremUserName, onpremUserPassword);;
context.AuthenticationMode = ClientAuthenticationMode.Default;
context.Load(context.Web);
context.ExecuteQuery();

netstandard2.0 project
I'm using ClientContext from assembly: Microsoft.SharePoint.Client, Version=16.1.0.0, Culture=neutral, PublicKeyTo…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Maksim2030
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant