Main Site Documentation

4.2.11.1 deserialize object incompatible with previous sdk's


#1

I noticed that a serialized object created with previous sdk version can not be de-serialized with 4.2.11.1 It throws an exception

This might be of interest to people who have stored application or config data in a serialized format on a memory card and are going to update their app / firmware.


#2

You mean going from 4.1 to 4.2? If it is previous 4.2 SDK then should not be possible as we didn’t change how this works plus this is a native NETMF feature from Microsoft.


#3

It was from 4.2.10 to 4.2.11 I will check another device


#4

I think it is part of the design. Assembly version is part of the binary serialization:


#5

@ Architect - Interesting, i will check


#6

I didn’t know that


#7

@ RobvanSchelven - Yep. I have just checked Full assembly name contains version information:

Assembly.GetExecutingAssembly().FullName 

looks like:

“GameOChess, Version=1.0.0.0”

for my last codeshare.

You can provide your own SerializationBinder to the binary formatter and ignore the assembly name completely or the just version part.


#8

@ Architect - Thanks for checking this out !!


#9

You are welcome!