Error Message: Could not load file or assembly System.IO.Compression

Error Message: Could not load file or assembly System.IO.Compression


Action:
When calling this command within my integration package the error message below was encountered:
            Microsoft.PowerShell.Archive\Expand-Archive -LiteralPath $zipFile -DestinationPath $workDirectory -Verbose
     However, it seems to work fine when running as the same user from the powershell command prompt on the same server.
Error Message:
VERBOSE: Performing the operation "Expand-Archive" on target "C:\work\transcripts.zip". >> TerminatingError(Add-Type): "Could not load file or assembly 'System.IO.Compression' ”.
Solution:

Our developer was able to reproduce the issue and reported that by copying a version of the following DLLs that are targeting .NET 4.5, the issue was resolved successfully.

Put the following DLLs from https://ssisplus.blob.core.windows.net/patches/15964/SysemIOCompressionDLLs.zip in the same folder as ISServer.exe and it should solve the issue (also, registering them in GAC is likely to also work).









    Book a Presales Call

     

    Are you new to COZYROC and evaluating our solutions? 
    Book a Presales Call with us now.