hhblaze / DBreeze

C# .NET NOSQL ( key value store embedded ) ACID multi-paradigm database management system.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

System.IO.Compression.ZLibException: 'The underlying compression routine could not be loaded correctly.' in UWP

thecodrr opened this issue · comments

This exception occurs on Windows 10 Mobile:
DllNotFoundException: Unable to load DLL 'clrcompression.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

On this line of code:

tran.TextInsert(TextTableName, record.Id.To_8_bytes_array_BigEndian(), record.GetTextSearchKey());

Here are some references:
http://stackoverflow.com/questions/41185291/unzipping-throws-an-the-underlying-compression-routine-could-not-be-loaded-corr

Thanks, I will take a look.

@hhblaze Thanks for the quick response, this is pretty urgent as it is holding back the update for my app. I may download the source code and try to fix this myself (and perhaps make a pull request) but it will be better if you fix this officially.

Unfortunately, I am away now... I can start from Monday

By the way, if you find a fix...it's gonna be a HUGE help, I will try to make release asap.

After much research on this bug, it seems it is within the core UWP nuget package. Here is a reference to the issue:
https://github.com/dotnet/corefx/issues/9743

So, I did a hotfix by added this to my project.json:

"runtime.win8-arm.runtime.native.System.IO.Compression": "4.0.1",

in dependencies array and it works flawlessly now.

Closing the issue as it is temporarily fixed.

Hi, great, can you post complete project.json here

Sure, I will do it in a few hours.