how to deserialize when class is in strong-named assembly?

  • Thread starter Thread starter Peter Rilling
  • Start date Start date
P

Peter Rilling

I have a create that I am serializing which is then stored for later
retrieval. The assembly that contains the class that I serialize is
strongly named.

I have encountered a problem were each time I update the version of the
assembly, the serialized content become invalid because the original class
cannot be found since the strong name changes. What is the best solution to
overcome this issue. Since I am not updating the serialized class, there
should be no problem in desterilizing the class, even if in another
assembly?
 
Peter,
I have encountered a problem were each time I update the version of the
assembly, the serialized content become invalid because the original class
cannot be found since the strong name changes. What is the best solution to
overcome this issue. Since I am not updating the serialized class, there
should be no problem in desterilizing the class, even if in another
assembly?


Try setting the formatter's AssemblyFormat property to
FormatterAssemblyStyle.Simple.



Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top