Home All Groups Group Topic Archive Search About

SoapFormatter vs. AssemblyVerison(1.0.*) celebrety deathmatch

Author
2 Nov 2005 11:32 PM
Nick
Hey all,

I'm developing something cool ;-)   As part of the process, I want to save
some configuration settings to disk, and since the XMLSerializer doesn't
like IDictionary, I went with the SoapFormatter.  If I compile my exe, I can
Serialize my cfg to a file, i can then Deserialize my cfg back from the
file.

However, once I recompile, and try to deserialize, I get an exception with
the following message:

Parse Error, no assembly associated with Xml key
a1:http://schemas.microsoft.com/clr/nsassem/CoolStuff/CoolStuff%2C%20Version%3D1.0.2132.30592%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dfa0187eb3dd584ef
Cfg" string

How do I make this work all the time without forcing my assembly verison to
1.0.0.0?


Thanks,

Nick

AddThis Social Bookmark Button