We found the problem. The component that was serialized had to be based on
SerializationBinder and override the BindToType. Before Deserialize you ust
do this:
BinaryFormatter b = new BinaryFormatter();
b.Binder = (System.Runtime.Serialization.SerializationBinder) new
DataToDeserialize();
SerializedClass = (DataToDeserialize)b.Deserialize(s);
For some reason Serialize does not save the path to the component correctly
so in deserialize you have to give it the path through binder.
"Mattias Sjögren" wrote:
When I call the interface from unmanaged C++ .net code it
gives me an error that the Assembly cannot be found.
Fuslogvw.exe is a good tool for dealing with load errors.
Mattias
--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.