SharePointOnlineCredentials Missing or not found

Viewed 19697

I have added Sharepoint reference in my project. Even after adding reference, it is showing:

SharePointOnlineCredentials Missing or not found.

Can anyone suggest a solution?

4 Answers

I faced the same issue

It was due to the reason that I did not install the Microsoft.SharePoint.Client.Runtime package in the NuGet

enter image description here

Make sure that both the NuGet packages are installed in the solution

Related