Serialization: how to acess from one assembly to another
-
And hello again ! I have a problem. I was using a soap serialization in assembly called "Catalog". I've got a file Data.xml. Then i was trying to serialize this file to another program ("LogBook"). I've got error:
Parse Error, no assembly associated with Xml key a4:http://schemas.microsoft.com/clr/nsassem/CatalogBeta/Catalog_2.0%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull strBook
What should i do ? How can i deSerialize this file ?One nation - underground
-
And hello again ! I have a problem. I was using a soap serialization in assembly called "Catalog". I've got a file Data.xml. Then i was trying to serialize this file to another program ("LogBook"). I've got error:
Parse Error, no assembly associated with Xml key a4:http://schemas.microsoft.com/clr/nsassem/CatalogBeta/Catalog_2.0%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull strBook
What should i do ? How can i deSerialize this file ?One nation - underground
The assembly you are serializing into also needs to know about the data structure that was serialized. If you want to serialize the data like this, you will need a third intermediary assembly that contains the class definition that is referenced by both of the other assemblies. Remember, serialization and deserialization are essentially a transport mechanism to take the binary state of an object from one context (serialization) and transfer it to another context (deserialization). Both contexts must understand the data structure being manipulated.
----------------------------- In just two days, tomorrow will be yesterday.