Silverlight 5 problem #105

Closed
opened 2026-01-29 22:06:38 +00:00 by claunia · 6 comments
Owner

Originally created by @kronic on GitHub (Jul 13, 2016).

 using (var gzStream = new GZipStream(memoryStream, CompressionMode.Compress))
 {
     gzStream.Write(buffer.Array, messageOffset, buffer.Count);
 }

{System.Security.VerificationException: Операция может вызвать нестабильность при выполнении.
в SharpCompress.Converter.DataConverter.CopyConverter.PutBytes(Byte[] dest, Int32 destIdx, Int32 value)
в SharpCompress.Compressor.Deflate.GZipStream.EmitHeader()
в SharpCompress.Compressor.Deflate.GZipStream.Write(Byte[] buffer, Int32 offset, Int32 count)
в WcfExtensions.Encoders.CompactMessageEncoder.CompressBuffer(ArraySegment`1 buffer, BufferManager bufferManager, Int32 messageOffset)}

Originally created by @kronic on GitHub (Jul 13, 2016). ``` using (var gzStream = new GZipStream(memoryStream, CompressionMode.Compress)) { gzStream.Write(buffer.Array, messageOffset, buffer.Count); } ``` {System.Security.VerificationException: Операция может вызвать нестабильность при выполнении. в SharpCompress.Converter.DataConverter.CopyConverter.PutBytes(Byte[] dest, Int32 destIdx, Int32 value) в SharpCompress.Compressor.Deflate.GZipStream.EmitHeader() в SharpCompress.Compressor.Deflate.GZipStream.Write(Byte[] buffer, Int32 offset, Int32 count) в WcfExtensions.Encoders.CompactMessageEncoder.CompressBuffer(ArraySegment`1 buffer, BufferManager bufferManager, Int32 messageOffset)}
Author
Owner

@adamhathcock commented on GitHub (Jul 21, 2016):

I don't think anything about Silverlight security anymore. Don't you have to declare what you're doing in the manifest? Couldn't you just need more permissions?

@adamhathcock commented on GitHub (Jul 21, 2016): I don't think anything about Silverlight security anymore. Don't you have to declare what you're doing in the manifest? Couldn't you just need more permissions?
Author
Owner

@kronic commented on GitHub (Jul 22, 2016):

1)Version 11.6 do worked.
2)Install version 12.2 do not worked;
3) Remove version 12.2
4)Install version 11.6 do worked.

@kronic commented on GitHub (Jul 22, 2016): 1)Version 11.6 do worked. 2)Install version 12.2 do not worked; 3) Remove version 12.2 4)Install version 11.6 do worked.
Author
Owner

@adamhathcock commented on GitHub (Jul 22, 2016):

Try this https://www.nuget.org/packages/sharpcompress/0.12.3

but I don't think it will help with this problem. I can't read the exception message. Does it not like unsafe?

@adamhathcock commented on GitHub (Jul 22, 2016): Try this https://www.nuget.org/packages/sharpcompress/0.12.3 but I don't think it will help with this problem. I can't read the exception message. Does it not like unsafe?
Author
Owner

@kronic commented on GitHub (Aug 1, 2016):

Version 12.3 do not worked.
system.security.verificationexception operation could destabilize the runtime

@kronic commented on GitHub (Aug 1, 2016): Version 12.3 do not worked. system.security.verificationexception operation could destabilize the runtime
Author
Owner

@adamhathcock commented on GitHub (Aug 12, 2016):

I created 0.12.4 with a slightly different target but I doubt it will fix this for you

@adamhathcock commented on GitHub (Aug 12, 2016): I created 0.12.4 with a slightly different target but I doubt it will fix this for you
Author
Owner

@Nanook commented on GitHub (Jul 24, 2025):

Silverlight is now obsolete.

@Nanook commented on GitHub (Jul 24, 2025): Silverlight is now obsolete.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#105