Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception on serializer.Deserialize(stream); System.TypeLoadException : The type "BinarySerialization.LastItemMode" in the Assembly "BinarySerializer, Version=5.6.0.0, Culture=neutral, PublicKeyToken=null" could not be loaded. #2

Open
KircMax opened this issue Apr 1, 2022 · 0 comments

Comments

@KircMax
Copy link

KircMax commented Apr 1, 2022

Hi there!

First of all - thanks for publishing open source software with MIT License, I love not having to do everything on my own :).
Sadly I am getting an exception when I'm trying to use the serializer.Deserialize(stream) from the example on the README;

System.TypeLoadException : The type "BinarySerialization.LastItemMode" in the Assembly "BinarySerializer, Version=5.6.0.0, Culture=neutral, PublicKeyToken=null" could not be loaded.
image

I have tried to include the BinarySerializer from
https://github.com/jefffhaynes/BinarySerializer
by hand but I couldn't find the 5.6.0.0 ... so I tried the 8.6.2.2 and some 5.8.x but I kept getting another exception then:
MissingMethodException: "void BinarySerialization.FieldAlignmentAttribute..ctor(Int32)".
image

Can you help me with this?

Thanks in advance and best regards,
Max

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

No branches or pull requests

1 participant