Forum Discussion
Tonje Waasjø
Jan 23, 2021Copper Contributor
Powershell error: Could not load file or assembly
I'm trying to install a solution from github and I get the error: Import-Module : Could not load file or assembly 'file:///C:\Users\...\SharePointPnPPowerShellOnline\SharePointPnP.PowerShell.Online...
- Jan 25, 2021
The problem is sloved. It was caused by the zip-file being blocked by your operating system. Sloved it by using 7Zip
Jan 24, 2021
Just to double check, have you installed PnP PowerShell? From the error message, it seems to be that is using the previous version of the module as well - a new version was released last week.
Tonje Waasjø
Jan 25, 2021Copper Contributor
- Jan 25, 2021
Hi Tonje Waasjø
In that case, I believe you will need the previous version for Windows PowerShell and not the new version for PowerShell Core.
Install-Module SharePointPnPPowerShellOnline
Documentation still seems to be available:
- Tonje WaasjøJan 25, 2021Copper Contributor
The problem is sloved. It was caused by the zip-file being blocked by your operating system. Sloved it by using 7Zip