Skip to content

GZipStream error #16280

@schovan

Description

@schovan

code:

using (var gZipStream = new GZipStream(fileStream, CompressionMode.Decompress))
				{
					return (CodebookDatabase)dataContractSerializer.ReadObject(gZipStream);
				}

error:

System.DllNotFoundException: MonoPosixHelper at (wrapper managed-to-native) System.IO.Compression.DeflateStreamNative.CreateZStream(System.IO.Compression.CompressionMode,bool,System.IO.Compression.DeflateStreamNative/UnmanagedReadOrWrite,intptr) at System.IO.Compression.DeflateStreamNative.Create (System.IO.Stream compressedStream, System.IO.Compression.CompressionMode mode, System.Boolean gzip) <0x2740038 + 0x00080> in <c2e9496db6ba466098b20331dcc12656>:0 at System.IO.Compression.DeflateStream..ctor (System.IO.Stream compressedStream, System.IO.Compression.CompressionMode mode, System.Boolean leaveOpen, System.Boolean gzip) <0x273f980 + 0x00066> in <c2e9496db6ba466098b20331dcc12656>:0 at System.IO.Compression.DeflateStream..ctor (System.IO.Stream stream, System.IO.Compression.CompressionMode mode, System.Boolean leaveOpen, System.Int32 windowsBits) <0x273f868 + 0x00026> in <c2e9496db6ba466098b20331dcc12656>:0 at System.IO.Compression.GZipStream..ctor (System.IO.Stream stream, System.IO.Compression.CompressionMode mode, System.Boolean leaveOpen) <0x27316b8 + 0x0002c> in <c2e9496db6ba466098b20331dcc12656>:0 at System.IO.Compression.GZipStream..ctor (System.IO.Stream stream, System.IO.Compression.CompressionMode mode) <0x27314c8 + 0x0001a> in <c2e9496db6ba466098b20331dcc12656>:0 at KiwiBlazor.Data.CodebookDatabaseRepository.Read () <0x2730818 + 0x00044> in <6898c563fe1d4c2aaf0e085be30b1630>:0 at App1.Business.Internal.Cube.CubeBase.Create (App1.Business.Data.CalculatorSettings calculatorSettings, System.Threading.CancellationToken cancellationToken, System.IProgress1[T] progress) <0x27300c0 + 0x0005e> in :0 at App1.Business.Services.Calculator.CalculateInner (App1.Business.Data.CalculatorSettings calculatorSettings, System.Threading.CancellationToken cancellationToken, System.IProgress1[T] progress) <0x272fe60 + 0x00052> in <f134c8506d75462f8da392d8c612d630>:0 at App1.Business.Services.Calculator+<>c__DisplayClass3_0.<Calculate>b__0 () <0x272fb98 + 0x00026> in <f134c8506d75462f8da392d8c612d630>:0 at (wrapper delegate-invoke) System.Func1[App1.Business.Data.CalculatorResults].invoke_TResult() at System.Threading.Tasks.Task1[TResult].InnerInvoke () <0x272f960 + 0x00026> in <6eede25ff44941f1aaa5c565f8d0750d>:0 at System.Threading.Tasks.Task.Execute () <0x2733628 + 0x0000e> in <6eede25ff44941f1aaa5c565f8d0750d>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x274e430 + 0x00082> in <6eede25ff44941f1aaa5c565f8d0750d>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x274dc38 + 0x00066> in <6eede25ff44941f1aaa5c565f8d0750d>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x25fa7e8 + 0x00018> in <6eede25ff44941f1aaa5c565f8d0750d>:0 at System.Runtime.CompilerServices.TaskAwaiter1[TResult].GetResult () <0x274d9f8 + 0x0000c> in <6eede25ff44941f1aaa5c565f8d0750d>:0 at App1.Business.Services.Calculator+d__3.MoveNext () <0x272c018 + 0x00146> in :0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x274e430 + 0x00082> in <6eede25ff44941f1aaa5c565f8d0750d>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x274dc38 + 0x00066> in <6eede25ff44941f1aaa5c565f8d0750d>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x25fa7e8 + 0x00018> in <6eede25ff44941f1aaa5c565f8d0750d>:0 at System.Runtime.CompilerServices.TaskAwaiter1[TResult].GetResult () <0x274d9f8 + 0x0000c> in <6eede25ff44941f1aaa5c565f8d0750d>:0 at KiwiBlazor.AppViewModel+<ComputeAnalysisNoServer>d__74.MoveNext () <0x271bb58 + 0x00314> in <6898c563fe1d4c2aaf0e085be30b1630>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x274e430 + 0x00082> in <6eede25ff44941f1aaa5c565f8d0750d>:0 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x274dc38 + 0x00066> in <6eede25ff44941f1aaa5c565f8d0750d>:0 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x25fa7e8 + 0x00018> in <6eede25ff44941f1aaa5c565f8d0750d>:0 at System.Runtime.CompilerServices.TaskAwaiter.GetResult () <0x26cadc0 + 0x0000c> in <6eede25ff44941f1aaa5c565f8d0750d>:0 at KiwiBlazor.AppViewModel+<ComputeAnalysis>d__72.MoveNext () <0x1d38ad0 + 0x0028e> in <6898c563fe1d4c2aaf0e085be30b1630>:0

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor Components

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions