Undocumented Serialization error

  • Thread starter Thread starter Sek
  • Start date Start date
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
 
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?
 
Back
Top