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
setsotohlohlomi1
Jan 19, 2023Copper Contributor
I had the same error for a different DLL though from AWS SDKs. The file was present and I had to go to the file properties and on the general tab at the bottom it showed that the file was blocked because of the source and there was an option to unblock it. I had to do this for multiple files and it was sorted