"Could not load file or assembly ‘System.IO.Compression" when trying to unzip


#1

Dear all,

I ran into the following error when trying to unzip:

18.3.2+Branch.master.Sha.0ee1a557250c8000e864a91dcaeebdc1a4bbeb00

Source: Un zip file

Message: Could not load file or assembly 'System.IO.Compression, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Exception Type: System.IO.FileLoadException

An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.IO.FileLoadException: Could not load file or assembly 'System.IO.Compression, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) ----> System.IO.FileLoadException: Could not load file or assembly 'System.IO.Compression, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

   --- End of inner ExceptionDetail stack trace ---
   at System.IO.Compression.ZipFile.ExtractToDirectory(String sourceArchiveFileName, String destinationDirectoryName, Encoding entryNameEncoding)
   at ZipAndUnzipFile.UnZipFile.Execute(CodeActivityContext context)
   at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
   at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
   at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

Gennaro

Unfortunately none of the solutions posted on the web are solving my problem. Any chances you could help?

Many thanks


#2

Hi @Gennaro_Bozza,

you can use this to unzip the files.

Regards
Balamurugan.S


#3

Thanks @balupad14, it works indeed!


#4

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.