Forum Discussion

M V's avatar
M V
Copper Contributor
Nov 03, 2016

Problems connecting to SharePoint (on-premise)

Hi all,

 

since I installed the new version of PNP PowerShell Cmdlets for SharePoint2016 I am not able to connect to my on-premise SharePoint Sites anymore. I always get following error-message "Method not found":

 

Connect-SPOnline : Methode nicht gefunden: "Void Microsoft.SharePoint.Client.ClientRuntimeContext.set_DisableReturnValueCache(Boolean)".
In Zeile:9 Zeichen:1
+ Connect-SPOnline -Url $siteUrl -Credentials $credentials
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Connect-SPOnline], MissingMethodException
    + FullyQualifiedErrorId : System.MissingMethodException,SharePointPnP.PowerShell.Commands.Base.ConnectSPOnline

 

I have been trying to uninstall and reinstall the PNP Cmdlets several times, restarting the computer and so on. The dlls are indeed manually findable. But nothing helps.

 

Does anyone have a suggestion?

 

Miriam

  • Hi M V,

     

    Can you publish the version and build number of your SharePoint environment. In general you get these kind of errors when you run on a different version of SharePoint than needed.

Resources