Latest Connect-PnPOnline not working "Method not found"

%3CLINGO-SUB%20id%3D%22lingo-sub-275706%22%20slang%3D%22en-US%22%3ELatest%20Connect-PnPOnline%20not%20working%20%22Method%20not%20found%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-275706%22%20slang%3D%22en-US%22%3E%3CP%3EMyself%20and%20other%20developers%20I%20know%20are%20now%20all%20of%20a%20sudden%20getting%20this%20error%20when%20using%20the%20latest%20CSOM%20and%20PnP%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Econnect-pnponline%20%3A%20Method%20not%20found%3A%20'System.Threading.Tasks.Task%3CBR%20%2F%3EMicrosoft.SharePoint.Client.ClientRuntimeContext.ExecuteQueryAsync()'.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere's%20a%20bug%20raised%20on%20GitHub%20for%20it%20that's%20the%20exact%20issue%2C%20but%20this%20renders%20PnP%20completely%20unusable.%26nbsp%3B%20I%20wasted%20hours%20yesterday%20trying%20rolling%20back%20CSOM%20from%20SDK%20and%20different%20install%20methods%20of%20PnP%20(MSI%2C%20install-module)%2C%20nothing%20works.%26nbsp%3B%20I%20was%20needing%20to%20create%2040%20modern%20sites%2C%20join%20to%20hub%2C%20etc%20but%20I%20have%20to%20do%20it%20all%20manually%20now%2C%26nbsp%3B%20Anyone%20else%20have%20this%20issue%3F%26nbsp%3B%20It's%20like%20the%20sharepoint.client.dll%20is%20old%20and%20missing%20some%20methods%20but%20I%20don't%20use%20VS%20and%20had%20to%20use%20nuget%20CLI%20to%20extract%20the%20DLLs%20then%20copy%20to%20my%20ISAPI%20folder%20since%20the%20last%20SDK%20installer%20is%20from%20a%20year%20ago!%26nbsp%3B%20Anyone%20else%20hitting%20this%3F%26nbsp%3B%20Ideas%20to%20fix%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-275706%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPnP%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Frequent Contributor

Myself and other developers I know are now all of a sudden getting this error when using the latest CSOM and PnP:

 

connect-pnponline : Method not found: 'System.Threading.Tasks.Task
Microsoft.SharePoint.Client.ClientRuntimeContext.ExecuteQueryAsync()'.

 

There's a bug raised on GitHub for it that's the exact issue, but this renders PnP completely unusable.  I wasted hours yesterday trying rolling back CSOM from SDK and different install methods of PnP (MSI, install-module), nothing works.  I was needing to create 40 modern sites, join to hub, etc but I have to do it all manually now,  Anyone else have this issue?  It's like the sharepoint.client.dll is old and missing some methods but I don't use VS and had to use nuget CLI to extract the DLLs then copy to my ISAPI folder since the last SDK installer is from a year ago!  Anyone else hitting this?  Ideas to fix? 

0 Replies