(Note: originally asked at stackoverflow.com)
I am trying to create a password protected zip file using the Rebex libraries.
Here is the code that I use
using (ZipArchive zip = new ZipArchive("C:\\Temp\\Ticket.zip", ArchiveOpenMode.Create))
// Set the Password first
zip.Password = "my_password";
// Change the default Encryption algorithm
zip.EncryptionAlgorithm = EncryptionAlgorithm.Aes256;
// Add the file to newly created "files" folder within the zip file
//Save the Zip file
// cloase the zip file
However, when I try to open the file I don't get the expected 'Password needed' dialog.
Instead I get the error message saying 'Windows cannot complete the extraction. The destination file could not be created'
I do need to get the expected 'Password needed' dialog so that I could properly extract the file
Please let me know if anyone ever dealt with that issue and found the solution