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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -