Unable to use new-pnpsite

%3CLINGO-SUB%20id%3D%22lingo-sub-136355%22%20slang%3D%22en-US%22%3EUnable%20to%20use%20new-pnpsite%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-136355%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20been%20using%20this%20cmdlet%20for%20a%20few%20weeks%20and%20it%20worked%20fine.%20I%20updated%20the%26nbsp%3BSharePointPnPPowerShellOnline%20module%20to%202.21.1712.1%20and%20now%20I'm%20getting%20the%20following%20error.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECan%20anyone%20tell%20me%20how%20to%20fix%20this%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENew-PnPSite%20%3A%20Could%20not%20load%20file%20or%20assembly%20'System.IdentityModel.Tokens.Jwt%2C%20Version%3D5.1.5.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35'%20or%20one%20of%20its%20dependencies.%20The%20system%20cannot%20find%20the%20file%20specified.%3CBR%20%2F%3EAt%20line%3A1%20char%3A1%3CBR%20%2F%3E%2B%20New-PnPSite%20-Type%20TeamSite%20-Title%20aco-bcp%20-Alias%20aco-bcp%3CBR%20%2F%3E%2B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%3CBR%20%2F%3E%2B%20CategoryInfo%20%3A%20WriteError%3A%20(%3A)%20%5BNew-PnPSite%5D%2C%20FileNotFoundException%3CBR%20%2F%3E%2B%20FullyQualifiedErrorId%20%3A%20EXCEPTION%2CSharePointPnP.PowerShell.Commands.NewSite%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F122%22%20target%3D%22_blank%22%3E%40Erwin%20van%20Hunen%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-136355%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPnP%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-225644%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20use%20new-pnpsite%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-225644%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20release%203.0.1808.1%20now%20which%20fixes%20the%20issue.%20Please%20try%20again%20with%20the%20latest%20version.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-225607%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20use%20new-pnpsite%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-225607%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20found%20the%20issue%20and%20we're%20currently%20working%20on%20a%203.0.1808.1%20release.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-225506%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20use%20new-pnpsite%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-225506%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22css-truncate-target%22%3ESame%20error%20same%20call%20for%26nbsp%3B%3CA%20class%3D%22css-truncate%22%20href%3D%22https%3A%2F%2Fgithub.com%2FSharePoint%2FPnP-PowerShell%2Ftree%2F3.0.1808.0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E3.0.1808.0%3C%2FA%3E.%20I%20had%20to%20roll%20back%20and%20it%20worked.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-136388%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20use%20new-pnpsite%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-136388%22%20slang%3D%22en-US%22%3Ethanks%20I%20have%20done%20that%20and%20it%20is%20working%20again.%20Good%20luck%20finding%20the%20problem.%20%3CBR%20%2F%3EShould%20I%20have%20opened%20an%20issue%20in%20GitHub%20for%20this%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-136364%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20use%20new-pnpsite%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-136364%22%20slang%3D%22en-US%22%3EFor%20now%20revert%20to%20the%20previous%20version%20while%20we%20investigate%20this.%3C%2FLINGO-BODY%3E
Highlighted
Respected Contributor

I have been using this cmdlet for a few weeks and it worked fine. I updated the SharePointPnPPowerShellOnline module to 2.21.1712.1 and now I'm getting the following error. 

 

Can anyone tell me how to fix this?

 

New-PnPSite : Could not load file or assembly 'System.IdentityModel.Tokens.Jwt, Version=5.1.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
At line:1 char:1
+ New-PnPSite -Type TeamSite -Title aco-bcp -Alias aco-bcp
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (:) [New-PnPSite], FileNotFoundException
+ FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.NewSite

 

@Erwin van Hunen

5 Replies
Highlighted
For now revert to the previous version while we investigate this.
Highlighted
thanks I have done that and it is working again. Good luck finding the problem.
Should I have opened an issue in GitHub for this?
Highlighted

Same error same call for 3.0.1808.0. I had to roll back and it worked.

Highlighted

We found the issue and we're currently working on a 3.0.1808.1 release.

Highlighted

We release 3.0.1808.1 now which fixes the issue. Please try again with the latest version.