I just ran into the same issue, and I noticed that there's an optional parameter for the ZipArchive
constructor called leaveOpen
. Documentation says: True to leave the stream open after the System.IO.Compression.ZipArchive object is disposed; otherwise, false
.
This solved the problem for me.