Forum Discussion

Dean_Gross's avatar
Dean_Gross
Silver Contributor
Dec 12, 2017

Unable to use new-pnpsite

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

    • Dean_Gross's avatar
      Dean_Gross
      Silver Contributor
      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?

Resources