Undocumented Serialization error

S

Sek

Hi Folks,

While deserialization in C#, i came across this error:

"No assembly ID for object type <MyClassName>".

The error is very abstract. Pls find below the stack trace.

StackTrace
at
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped
record)\r\n
at
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryHeaderEnum
binaryHeaderEnum)r\n
at
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()\r\n
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler
handler, __BinaryParser serParser, Boolean fCheck, IMethodCallMessage
methodCallMessage)\r\n
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream
serializationStream, HeaderHandler handler, Boolean fCheck,
IMethodCallMessage methodCallMessage)\r\n
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream
serializationStream, HeaderHandler handler)\r\n
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream
serializationStream)\r\n
at
MyApp.MyMethod(String fileName, Boolean& versioned)

TIA.
Sek
 
N

Nicholas Paldino [.NET/C# MVP]

Sek,

I don't know that this is an error. If you could post your code.

Also, do you have the assembly with the type you are trying to
deserialize loaded in the app domain that is deserializing the instance?
 

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

Top