[
  {
    "Id": "194881",
    "ThreadId": "57642",
    "Html": "<p>I am creating a password-protected zip containing a number of files and then later allowing the user to select files to remove from the zip.&nbsp; This works fine if the zip is not password protected, but if I password protect the zip when I create it (sample code below) I get &quot;FileNotFoundException&quot; (&quot;file2.txt&quot;) when I later remove a file from the zip and try to save it.</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;&nbsp;&nbsp; Sub AddFiles()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim zip As New Ionic.Zip.ZipFile()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zip.Password = &quot;password&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zip.Encryption = Ionic.Zip.EncryptionAlgorithm.WinZipAes256<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim entry1 As Ionic.Zip.ZipEntry = zip.AddFile(&quot;c:\\file1.txt&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zip.AddFile(&quot;c:\\file2.txt&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zip.Save(ZipFileName)<br>&nbsp;&nbsp;&nbsp; End Sub<br><br>&nbsp;&nbsp;&nbsp; Sub RemoveFile()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim zip As New Ionic.Zip.ZipFile(ZipFileName)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zip.RemoveEntry(&quot;c:\\file1.txt&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zip.Save(ZipFileName)<br>&nbsp;&nbsp;&nbsp; End Sub</p>",
    "PostedDate": "2009-05-27T11:32:24.393-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "194918",
    "ThreadId": "57642",
    "Html": "<p>Taking your code, I could not reproduce the &quot;FileNotFoundException&quot; you reported.&nbsp;</p>\r\n<p>Using v1.8.3.11, your code works, as expected.</p>\r\n<p>Using v1.7.2.20, when I call Save()&nbsp;after removing an entry from a password protected file, I get an exception, but not the one you reported.&nbsp; I get, instead, Ionic.Zip.BadPasswordException .&nbsp; This seems like a bug, but it is not the problem you reported.</p>\r\n<p>What version of the library are you using?</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-05-27T13:04:28.62-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "194933",
    "ThreadId": "57642",
    "Html": "<p>I was using 1.7.2.16.&nbsp; When I switched to 1.8.3.11, the code worked fine, just as you said.&nbsp;</p>\r\n<p>Thanks for your help.</p>",
    "PostedDate": "2009-05-27T13:36:57.91-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "194949",
    "ThreadId": "57642",
    "Html": "<p>Glad you got it working. After some further testing I was able to reproduce that FileNotFoundException.&nbsp; It's a bug, that was fixed in v1.8 but the fix was not back-ported to v1.7. I'm doing that now.</p>",
    "PostedDate": "2009-05-27T14:17:57.873-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "194956",
    "ThreadId": "57642",
    "Html": "<p>Thanks for the follow-up.&nbsp; I'll give v1.7 a try after it's updated.</p>",
    "PostedDate": "2009-05-27T14:29:44.187-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "194964",
    "ThreadId": "57642",
    "Html": "<p>v1.7.2.21 is now available.&nbsp; It has this fix.</p>\r\n<p>Thanks</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-05-27T15:02:44.99-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]