Open mcfly722 opened 8 years ago
Hello,
How did you install the module? Did you compile it from source or get it from PSGet or the PowerShell Gallery?
I tried both methods with both versions. Same error every time.
I recorded *.pml (ProcMon log from Sysinternals Suite) during this error, it contains several errors that some files or registry hives could not be found (here link to this log: https://drive.google.com/open?id=0B6f_kTQWQkRgT2xxSHFlNDc4Y00).
Such as: C:\Users\mukhin_s\Documents\WindowsPowerShell\Modules\Octopus-Cmdlets\Sprache.xml C:\Windows\assembly*\Sprache HKCU\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell
and so on.
Possibly it will helps to debug this error.
I have this issue too. It has only started happening since one of my machines has needed a calamari update. The issue goes away when the calamari update is applied.
James
PS C:\Windows\system32> Import-Module Octopus-Cmdlets Import-Module : Could not load file or assembly 'file:///C:\Users\mukhin_s\Documents\WindowsPowerShell\Modules\Octopus-Cmdlets\Octopus-Cmdlets.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) At line:1 char:1
Tried with both 0.1.0 and 0.2.24 versions.
PS C:\Windows\system32> $PSVersionTable.PSVersion Major Minor Build Revision
4 0 -1 -1