Closed Christianschrodahl closed 1 year ago
Yeah, this is caused by the following line: https://github.com/icsharpcode/SharpZipLib/blob/cdd0931e3c476faaf829963b2567619431c871bb/src/ICSharpCode.SharpZipLib/Zip/ZipOutputStream.cs#L608
It shouldn't be called inside WriteEntryFooter
, but rather in the CloseEntry(Async) methods.
Steps to reproduce
Expected behavior
Return a zipped file
Actual behavior
You can se it crash on PutNextEntryAsync and/or finnishAsync. Looks like PutNextEntryAsync calls Finish() and not FinnishAsync()
Exception:
Exception has occurred: CLR/System.InvalidOperationException Exception thrown: 'System.InvalidOperationException' in System.Private.CoreLib.dll: 'Synchronous operations are disallowed. Call WriteAsync or set AllowSynchronousIO to true instead.'
Version of SharpZipLib
1.4.1
Obtained from (only keep the relevant lines)