SubPointSolutions / spmeta2

SharePoint artifact provision for .NET platform. Supports SharePoint Online, SharePoint 2019, 2016 and 2013 via CSOM/SSOM.
http://subpointsolutions.com/spmeta2
133 stars 56 forks source link

Could not load file or assembly 'Microsoft.SharePoint.Client, Version=15.0.0.0 #1129

Closed Maksim2030 closed 4 years ago

Maksim2030 commented 5 years ago

SharePoint API

Which version of SharePoint runtime do you use?

SPMeta2 API

Latest 1.2.1840.0152

I have error message 'Could not load file or assembly 'Microsoft.SharePoint.Client, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.'

My version of 'Microsoft.SharePoint.Client' is 16.1.8613.1200. I see dependencies image

SubPointSupport commented 5 years ago

Hey @IlyeniaMaksim, thanks for raising this.

From what can be seen, we try to setup provision agains O365. Which NuGet package did you use? In this case, did you try SPMeta2.CSOM.Standard-v16 NuGet package?

It is a bit confusing, but for O365 the following package should be used:

https://www.nuget.org/packages/SPMeta2.CSOM.Standard-v16/

v16 stands not for SharePoint 2016, it stands for v16 assemblies which was the case for O365 before SP2016 arrival. Now it's a super bit confusing and we will be changing name convention for NuGet packages.

Anyway, check your packages, give it a go and let us know what's happening.

Maksim2030 commented 5 years ago

I'm using: image

Maksim2030 commented 5 years ago

I'll try it. Thanks!