I ran into a similar problem, with smaller zip files less than 20-25 MB, it took 3-4 seconds, but something more than that, it took infinite time. The code never exited.
I started to worry that maybe this was the wrong decision to use the DotNetZip afterall library, since we work with zip files up to 500 MB.
Before saving the zip file, I added: zip.ParallelDeflateThreshold = -1;
This ensures that separate threads are never created. It seems that as soon as the zip files pass a certain threshold, DotNetZip continues to create numerous streams, causing a very large delay in receiving the final zip file.
Kimi
source share