c# - Unzip password protected file in SSIS using Ionic.Zip dll -


i got requirement unzip file contains password protected text files in zip file.which have done in ssis package..

i have googled , download dll called ionic.zip used in script task.

i have used below code using c# in script task..

  using ionic.zip;      public void main()           {                  dts.taskresult = (int)scriptresults.success;     start obj= new start();     obj.decrypt();   }   public class start    {      public void decrypt()        {         string sfilepath ="e:\\shekar\\cif_files\\usage.zip";                                 zipfile filetoextract = new zipfile(sfilepath);         filetoextract.password = "ftp122";         filetoextract.extractall("e:\\shekar\\cif_files");         }     } 

but getting exception msg below

enter image description here

i had google lot. can't find correct solution. 1 prove me answer

take @ below. give idea of how it's being used in c# environment. remember check different solutions:

link


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -