I want to serialze an object. I use the binary formatter because it's a very complex object. I solved a lot of SerializationExceptions, but there are two that I don't understand or know how to handle.
"The type "Ivi.Visa.Interop.FormattedIO488Class" in assembly "Ivi.Visa.Interop, Version=22.214.171.124, Culture=neutral, PublicKeyToken=a128c98f1d7717c1" is not marked as serializable."
The problem is that Ivi.Visa.Interop is just a using directive in some of my classes. I don't know how to make them serializable.
The second problem is a warning
"The referenced assembly "ZedGraph.Web" could not be resolved because it has a dependency on "System.Design, Version=126.96.36.199, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project."
This is just a reference. I don't know what to do :(
Thanks for help.