runtime: ARM: ZLibException when working with GZipStream (System.IO.Compression.ZipFile 4.3.0)
In my UWP app, I am using the NuGet packages Microsoft.Data.Sqlite 1.1.0
and Microsoft.EntityFrameworkCore.Sqlite 1.1.0
, both requiring the package System.IO.Compression.ZipFile 4.3.0
.
When using a GZipStream in my app, I get a System.IO.Compression.ZLibException ("The underlying compression routine could not be loaded correctly.")
. InnerException: Unable to load DLL 'clrcompression.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
.
Happens on mobile (ARM) only!
This is how I am using the stream:
using (GZipStream stream = new GZipStream(compressedStream, CompressionMode.Compress, true))
{
await fileStream.CopyToAsync(stream);
}
Problem can be reproduced by installing the System.IO.Compression.ZipFile 4.3.0
package only.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 26 (10 by maintainers)
@ianhays Hi, this issue can still be reproduced by simply referencing
System.IO.Compression 4.3.0
in a blank UWP app project and use some api from it, likenew DeflateStream(...
When testing on an arm device with Debug configuration,
ZLibException
will be thrown. Could anyone do some further testing about it?Here is a project that reproduces this issue. SystemIOCompressionUWPError.zip