SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.25k stars 1.01k forks source link

Microsoft.SharePoint2019.CSOM contains server side library and no client side Tenant library #5469

Open jensotto opened 4 years ago

jensotto commented 4 years ago

Category

Describe the bug

The Microsoft.SharePoint2019.CSOM NuGet package contains a server side library (Microsoft.Online.SharePoint.Dedicated.TenantAdmin.dll) which can't be used client side and are missing the client side Tenant assembly (Microsoft.Online.SharePoint.Client.Tenant.dll)

Also all assemblies in this package is based on the pre-RTM version of SharePoint 2019.

Steps to reproduce

Download the Microsoft.SharePoint2019.CSOM NuGet package, and check it's content.

Expected behavior

The Microsoft.SharePoint2019.CSOM NuGet package should not contain server side assemblies, and it should contain the client side Tenant assembly.

Developer environment

N/A

Additional context

msft-github-bot commented 4 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

antanta commented 4 years ago

Additionally Microsoft.Online.SharePoint.Dedicated.TenantAdmin.dll has a reference for Microsoft.SharePoint.Client.ServerRuntime.dll which if not installed with the SharePoint SDK, i.e. missing from the GAC, will cause your solution to not even start (in my case it was a console app which failed to start on a server without the SDK).

ScoutmanPt commented 2 years ago

Hi, any update on this? There is still no new version on this package. Thanks

radekskl commented 6 months ago

Another bump, 2 year later getting the same issue

jc-akkodis commented 1 month ago

I have also the same issue where Microsoft.SharePoint.Client.ServerRuntime.dll is not found after I have installed Owin in my project and I don't understand the connection between Owin and Microsoft.SharePoint.Client.ServerRuntime.dll. Can you please help?

radekskl commented 1 month ago

I have also the same issue where Microsoft.SharePoint.Client.ServerRuntime.dll is not found after I have installed Owin in my project and I don't understand the connection between Owin and Microsoft.SharePoint.Client.ServerRuntime.dll. Can you please help?

Not sure is that's same case as yours, but I've ended up using package Microsoft.SharePointOnline.CSOM (ver 16.1.20720.12000) and it started to work.

jc-akkodis commented 1 month ago

I have also the same issue where Microsoft.SharePoint.Client.ServerRuntime.dll is not found after I have installed Owin in my project and I don't understand the connection between Owin and Microsoft.SharePoint.Client.ServerRuntime.dll. Can you please help?

Not sure is that's same case as yours, but I've ended up using package Microsoft.SharePointOnline.CSOM (ver 16.1.20720.12000) and it started to work.

Thanks for the feedback! So you Microsoft.SharePointOnline.CSOM with sharepoint 2019 on prem without any issues?

radekskl commented 1 month ago

I have also the same issue where Microsoft.SharePoint.Client.ServerRuntime.dll is not found after I have installed Owin in my project and I don't understand the connection between Owin and Microsoft.SharePoint.Client.ServerRuntime.dll. Can you please help?

Not sure is that's same case as yours, but I've ended up using package Microsoft.SharePointOnline.CSOM (ver 16.1.20720.12000) and it started to work.

Thanks for the feedback! So you Microsoft.SharePointOnline.CSOM with sharepoint 2019 on prem without any issues?

Yes, at least for the limited scope I use it for (mainly file operations, and Search API).

jc-akkodis commented 1 month ago

I have also the same issue where Microsoft.SharePoint.Client.ServerRuntime.dll is not found after I have installed Owin in my project and I don't understand the connection between Owin and Microsoft.SharePoint.Client.ServerRuntime.dll. Can you please help?

Not sure is that's same case as yours, but I've ended up using package Microsoft.SharePointOnline.CSOM (ver 16.1.20720.12000) and it started to work.

Thanks for the feedback! So you Microsoft.SharePointOnline.CSOM with sharepoint 2019 on prem without any issues?

Yes, at least for the limited scope I use it for (mainly file operations, and Search API).

Ok, thanks, good to know. What worked for is to install the missing dll -> https://www.nuget.org/packages/SharePoint.Client.ServerRuntime.2016.

However, this is an unofficial package I'm not sure if I want to use in in production. I think there should be an official fix from Microsoft.