Octopus-Cmdlets icon indicating copy to clipboard operation
Octopus-Cmdlets copied to clipboard

Octopus-Cmdlets\Octopus-Cmdlets.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)

Open mcfly722 opened this issue 9 years ago • 3 comments

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

  • Import-Module Octopus-Cmdlets
  • - CategoryInfo          : NotSpecified: (:) [Import-Module], FileLoadException
    - FullyQualifiedErrorId : System.IO.FileLoadException,Microsoft.PowerShell.Commands.ImportModuleCommand
    
    

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

mcfly722 avatar Oct 14 '16 10:10 mcfly722

Hello,

How did you install the module? Did you compile it from source or get it from PSGet or the PowerShell Gallery?

Swoogan avatar Oct 22 '16 17:10 Swoogan

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.

mcfly722 avatar Oct 24 '16 08:10 mcfly722

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

JBashford avatar Feb 20 '17 15:02 JBashford