Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

[Downlevel] ZLibException on web listener #790

Closed
victorhurdugaci opened this issue Oct 21, 2014 · 2 comments
Closed

[Downlevel] ZLibException on web listener #790

victorhurdugaci opened this issue Oct 21, 2014 · 2 comments

Comments

@victorhurdugaci
Copy link
Contributor

This is bug when running on CoreCLR Win7/2008R2.

  1. Run MusicStore or any app that uses identity on weblistener
  2. Try to login

You get the following exception

System.IO.Compression.ZLibException: The underlying compression routine could not be loaded correctly. ---> System.DllNotFoundException: Unable to load DLL 'clrcompression.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
   at Interop.deflateInit2_(Byte* stream, Int32 level, Int32 method, Int32 windowBits, Int32 memLevel, Int32 strategy, Byte* version, Int32 stream_size)
   at Interop.DeflateInit2_(ZStream& stream, CompressionLevel level, CompressionMethod method, Int32 windowBits, Int32 memLevel, CompressionStrategy strategy, Byte[] version)
   at System.IO.Compression.ZLibNative.ZLibStreamHandle.DeflateInit2_(CompressionLevel level, Int32 windowBits, Int32 memLevel, CompressionStrategy strategy)
   at System.IO.Compression.ZLibNative.CreateZLibStreamForDeflate(ZLibStreamHandle& zLibStreamHandle, CompressionLevel level, Int32 windowBits, Int32 memLevel, CompressionStrategy strategy)
   at System.IO.Compression.DeflaterZLib.DeflateInit(CompressionLevel compressionLevel, Int32 windowBits, Int32 memLevel, CompressionStrategy strategy)
   --- End of inner exception stack trace ---
   at System.IO.Compression.DeflaterZLib.DeflateInit(CompressionLevel compressionLevel, Int32 windowBits, Int32 memLevel, CompressionStrategy strategy)
   at System.IO.Compression.DeflaterZLib..ctor(CompressionLevel compressionLevel)
   at System.IO.Compression.DeflateStream.CreateDeflater(Nullable`1 compressionLevel)
   at System.IO.Compression.DeflateStream..ctor(Stream stream, CompressionLevel compressionLevel, Boolean leaveOpen)
   at System.IO.Compression.GZipStream..ctor(Stream stream, CompressionLevel compressionLevel, Boolean leaveOpen)
   at System.IO.Compression.GZipStream..ctor(Stream stream, CompressionLevel compressionLevel)
   at Microsoft.AspNet.Security.DataHandler.Serializer.TicketSerializer.Serialize(AuthenticationTicket model)
   at Microsoft.AspNet.Security.DataHandler.SecureDataFormat`1.Protect(TData data)
   at Microsoft.AspNet.Security.Cookies.CookieAuthenticationHandler.<ApplyResponseGrantAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNet.Security.Infrastructure.AuthenticationHandler.<ApplyResponseCoreAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNet.Security.Infrastructure.AuthenticationHandler.ApplyResponse()
   at Microsoft.Net.Http.Server.Response.NotifyOnSendingHeaders()
@Eilon Eilon added this to the 1.0.0-beta1 milestone Oct 21, 2014
@victorhurdugaci
Copy link
Contributor Author

This bug can be simply reproduced by running this code on CoreCLR on Win7:

using (var memory = new MemoryStream())
{
    GZipStream compression;
    compression = new GZipStream(memory, CompressionLevel.Optimal);
}

@davidfowl
Copy link
Member

@victorhurdugaci closing this out as resolved

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants