Issue with MaxOutputSegmentSize

whenever i am using MaxOutputSegmentSize i get an Exception (System.UnauthorizedAccessException: Access denied ...).

I use the current v 1.9.1.8

Ist an basic code adding a file and two folders to the archive, i reproduced the exception with different folders (Size about 400MB to 1GB with lots of smaller files).

When i do not use MaxOutputSegmentSize it works, when i give MaxOutputSegmentSize an Value for 100MB the exception will allways occur when the second file (.z02) reached its max size, a third file is not created then. When i set the MaxOutputSegmentSize
to a value for 5MB there are several files and the Exception will occur later, i.e. on the end of file .z08.

The directories used are local directories with all read/write rights für IUSR / IIS_IUSR / IIS_WPG but those rights did not change anything.

The strange thing is that the first z01 file always works, the exception allways occurs on a later one.

If i use zip.ZipErrorAction = ZipErrorAction.Skip or .Retry i get an System.ObjectDisposedException instead.

Can anyone help me with this?

ZipFile zip =newZipFile(backupPath +"Backup.zip");zip.MaxOutputSegmentSize= maxSize;//zip.TempFileFolder = @"D:\Backup\Temp"; //seems not to make any difference

zip.Comment="Backup created at "+System.DateTime.Now.ToString("G");zip.AddFile(dbBackup.FullName,"Database");zip.AddDirectory(physicalAppPath,"Application");zip.AddDirectory(mailArchivePath,"MailArchive");zip.Save();//Exception occurs here

Hmmm, this is unfortunate. It does seem like there's still bug in the segmented archive stuff. I'll need a way to reproduce it . I went through lots of testing trying to make sure that the segmented stuff works well. I don't see errors.
If you could package up a small testcase that reliably reproduces the problem, I'll get to work on it.