- Flexera Community
- :
- FlexNet Manager
- :
- FlexNet Manager Knowledge Base
- :
- Config.ps1 or InstallCognos.ps1 script fails with error "Could not load file or assembly 'file:///.....
- Mark as New
- Mark as Read
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Config.ps1 or InstallCognos.ps1 script fails with error "Could not load file or assembly 'file:///...\Support\DotNetZip.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)"
Config.ps1 or InstallCognos.ps1 script fails with error "Could not load file or assembly 'file:///...\Support\DotNetZip.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)"
Summary
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)
Cause
Windows can block access to DLL files that it tracks as having been downloaded from an untrusted location.
Resolution
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
Additional Information
Here are some additional resources that discuss unblocking files in Windows environments:
- Mark as Read
- Mark as New
- Permalink
- Report Inappropriate Content
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
- Mark as Read
- Mark as New
- Permalink
- Report Inappropriate Content
Hi,
Other solution would be to run the unblock-file command in Powershell for the ionic.zip.dll
Stefan