Second save fails with Could not find file 'filename' error.


I'm trying to save an existing ZipFile to another filename, but using the .Save(filename) throws an error.
Code snippet:
        ZipFile zip = new ZipFile();
        zip.Save(@"d:\1.xyz"); // works perfectly
        zip.Save(@"d:\2.xyz"); // fails with error Could not find file 'd:\2.xyz'.
According to the my interpretation of the documentation, this should work. If not, does anyone has a workaround?
I'm using this in a scenario where a program adds all kinds of documents to the ZipFile and the user can use a "File, Save As..." menu.
Version Ionic: 1.9
Kind regards,
Robbie De Sutter
Closed Aug 6, 2011 at 6:17 AM by Cheeso
fixed in changeset 81635. The first binary release with this fix is v1.9.1.7


hardcodet wrote May 3, 2010 at 2:52 PM

Multiple saves seem to be a problem. I opened a related work item:

I got a (hopefully temporary) workaround by setting a property differently - look at the work item and the related discussion.

Cheeso wrote Aug 3, 2011 at 5:52 PM

I've reproduced this problem here on v1.9.1.6.

wrote Aug 6, 2011 at 6:17 AM

wrote Feb 22, 2013 at 1:43 AM

wrote May 16, 2013 at 12:31 PM