question

KodandaRamKanumuri-4158 avatar image
0 Votes"
KodandaRamKanumuri-4158 asked HazemAbdelWahab-0414 answered

Cannot find stub for type with id "{GUID}". The specified server may not support APIs used in this operation.

HI,
I'm trying to connect to on-premise project server 2016 site using CSOM and receiving the following error.

Cannot find stub for type with id "{GUID}". The specified server may not support APIs used in this operation.

I'm using the following version of CSOM libraries.
https://www.nuget.org/packages/Microsoft.SharePointOnline.CSOM/

office-sharepoint-server-customization
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@KodandaRamKanumuri-4158

I'm checking how the things are going on about this issue. Whether the answer helps you?

You can accept the answer if it helps.


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 Votes 0 ·

@KodandaRamKanumuri-4158

Is there any progress on this issue?

If you find any answers helpful to you, please remember to accept them.

It will help others who meet the similar question in this forum.

Thank you for your understanding.


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 Votes 0 ·
trevorseward avatar image
0 Votes"
trevorseward answered KodandaRamKanumuri-4158 commented

Use https://www.nuget.org/packages/Microsoft.SharePoint2016.CSOM/ instead. CSOM is product-specific.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

thank you for your response.

The give version is missing reference for "Microsoft.ProjectServer.Client". It has only sharepoint references. other package needs to be installed for project server dlls?

0 Votes 0 ·
EmilyDu-MSFT avatar image
0 Votes"
EmilyDu-MSFT answered EmilyDu-MSFT edited

@KodandaRamKanumuri-4158

You could try to download Microsoft ProjectServer client dll from this post.


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

HazemAbdelWahab-0414 avatar image
0 Votes"
HazemAbdelWahab-0414 answered

This happened with me when I was using Microsoft.ProjectServer.Client.dll version higher than the one installed in the SharePoint Farm (ISAPI dlls).
So, the solution was to take the version that is installed on the SharePoint farm (ISAPI folder) and reference it on my custom solution.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.