Skip to content
This repository has been archived by the owner on May 16, 2022. It is now read-only.

System.TypeInitializationException - ZeroFormatterEqualityComparer on Android #109

Open
philipogorman opened this issue Jun 11, 2019 · 0 comments

Comments

@philipogorman
Copy link

I get the error below when deserializing on android . The code is in a net standard 2 library, the file deserilaizes fine in a net core unit test runner.

The data type is:
Dictionary<int, Dictionary<string, Dictionary<string, SimpleObject>>>

Unhandled Exception:

System.TypeInitializationException: The type initializer for 'ZeroFormatter.Comparers.ZeroFormatterEqualityComparer`1' threw an exception. occurred


at ZeroFormatter.Formatters.DictionaryFormatter`3[TTypeResolver,TKey,TValue].Deserialize (System.Byte[]& bytes, System.Int32 offset, ZeroFormatter.DirtyTracker tracker, System.Int32& byteSize) [0x00025] in <be1feee373484d2195f08309177a3679>:0 
  at ZeroFormatter.ZeroFormatterSerializer+CustomSerializer`1[TTypeResolver].Deserialize[T] (System.Byte[] bytes) [0x00034] in <be1feee373484d2195f08309177a3679>:0 
  at ZeroFormatter.ZeroFormatterSerializer.Deserialize[T] (System.Byte[] bytes) [0x00000] in <be1feee373484d2195f08309177a3679>:0 

Any ideas what could be wrong?

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

No branches or pull requests

1 participant