A new Flexera Community experience is coming on November 25th, click here for more information.
If installation files have been directly downloaded from the Internet and uncompressed then running the Config.ps1 or InstallCognos.ps1 script may fails to an error message like the following:
Could not load file or assemply 'file:///C:\FNMS\Support\DotNetZip.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
Could not load file or assemply 'file:///C:\FNMS\Support\Ionic.Zip.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
Windows can block access to DLL files that it tracks as having been downloaded from an untrusted location.
Executing a PowerShell command like the following will use the Unblock-File cmdlet to unblock access to downloaded DLLs (replace the path "C:\FNMS" with the relevant directory path for your environment):
Get-ChildItem -Recurse "C:\FNMS\Support" | Unblock-File
Here are some additional resources that discuss unblocking files in Windows environments:
on Dec 13, 2018 10:07 AM - edited on Sep 25, 2022 10:59 PM by ChrisG
For a quick and easy solution, we've had consistent success with the following: https://community.flexera.com/t5/FlexNet-Manager-Forum/Invoke-Expression-Exception-calling-quot-LoadFrom-quot-with-quot/m-p/144983/highlight/true#M6533
Hi,
Other solution would be to run the unblock-file command in Powershell for the ionic.zip.dll
Stefan