When i try to open a serialized file, that is generated using old Application(.NET), in new application(.NET) then i am getting SerilizationException "Cannot get the member 'b__319_0".
Key points 1.) Serialization and deserialization working in the same version of code without any exception. 2.) Across versions it is not working. 3.) It is WPF application and I am serializing MyViewModel class that is derived from ViewModel. 4.) Using BinaryFormatter
Detail description I added new variables, properties and method in my class in new version(as project required). Now when i try to open my old serialized file in new version then i get Serialization Exception "Cannot get the member 'b__319_0'".
To Identify this issue i commented all newly added code and try to open my older data in newer version(In which i commented new code) this older data open in this version without any Exception.
I prepared sample program out of my application and it is working fine. Now I am really confused about the actual problem and not able to find out the solution.
Any suggestion will help Thank you in advance