Share via

Invoke-PnPSPRestMethod : Method not found: 'Void OfficeDevPnP.Core.Utilities.PnPHttpProvider

Yann 21 Reputation points
2020-10-06T13:28:10.67+00:00

Hello,

I get this error when I run the cmdlet from a Win server

Invoke-PnPSPRestMethod -url $AnyURL

Invoke-PnPSPRestMethod : Method not found: 'Void OfficeDevPnP.Core.Utilities.PnPHttpProvider..ctor(System.Net.Http.HttpMessageHandler, Int32, Int32, System.String)'.

There is no issue if I run it from my Win10 client. Both have the same version of PnP.

I guess in Win server (2016-2019), some files are not included... How could I add this method ? OfficeDevPnP.Core.Utilities.PnPHttpProvider

Hope I'm posting at the best place. Thank you for your assistance.

Yann

Microsoft 365 and Office | SharePoint | For business | Windows
Windows for business | Windows Server | User experience | PowerShell
0 comments No comments

1 answer

Sort by: Most helpful
  1. Yann 21 Reputation points
    2020-10-09T07:43:13.857+00:00

    Hi,

    Please could someone try this command Invoke-PnPSPRestMethod -url https://YOURTENANT.sharepoint.com from a Windows Server and tell me if he has the same behavior as me?

    Thank you

    Yann

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.