You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Call some Zip functionality where exception is triggered
Expected behavior
the exception is serializable so it does not clash with WCF
Actual behavior
exception=System.Runtime.Serialization.SerializationException: Type 'ICSharpCode.SharpZipLib.Zip.ZipException' in Assembly 'ICSharpCode.SharpZipLib, Version=1.1.0.145, Culture=neutral, PublicKeyToken=1b03e6acf1164f73' is not marked as serializable.
I think this was skipped due to .NET Standard 1 not supporting it. But since we are now targeting .NET Standard 2, inclusion should no longer be an issue. A PR would be welcomed!
There are several exception types defined in the library - if this was going to be done, would it be worth looking over all of them rather than just ZipException?
Activity
piksel commentedon Jul 4, 2019
I think this was skipped due to .NET Standard 1 not supporting it. But since we are now targeting .NET Standard 2, inclusion should no longer be an issue. A PR would be welcomed!
fatimagullmadni commentedon Jul 5, 2019
Thanks for reply, Is there a ETA for the support ?
piksel commentedon Jul 5, 2019
No, there is currently no ongoing effort to support this.
[-]Zip exception is not serializable[/-][+]Add Serializable attribute to ZipException[/+]Numpsy commentedon Aug 1, 2019
There are several exception types defined in the library - if this was going to be done, would it be worth looking over all of them rather than just ZipException?
piksel commentedon Aug 1, 2019
Yeah, but it should just be a matter of adding
[Serializable]in the declaration.Numpsy commentedon Aug 1, 2019
Ok (wasn't sure if they'd need the SerializationInfo constructor overloads adding as well.)
Numpsy commentedon Aug 15, 2019
@fatimagullmadni Do the changes in the 1.2.0 release work for your use case?