Deserialization

  • Thread starter Thread starter DazedAndConfused
  • Start date Start date
D

DazedAndConfused

I am serializing a class to a binary formatted output file.
The application that created the output file is able to read the file back
into the program.

When I try to read the file into a different application I get the error,
"Additional information: Cannot find the assembly bwsFileWriter1,
Version=1.0.2012.27937, Culture=neutral, PublicKeyToken=null."

What must I do inorder to read the file into the application?
 
Are you referencing the *same* class in the second application? If you
merely copied the class into the second application, they are not the
same, even if they have the same code.

Put the class you are serializing into its own Class Library and then
reference that from both applications. They should be able to
(de)serialize the objects correctly.
 

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