469,963 Members | 1,241 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,963 developers. It's quick & easy.

Undocumented Serialization error

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.__B inaryParser.ReadObjectWithMapTyped(BinaryObjectWit hMapTyped
record)\r\n
at
System.Runtime.Serialization.Formatters.Binary.__B inaryParser.ReadObjectWithMapTyped(BinaryHeaderEnu m
binaryHeaderEnum)r\n
at
System.Runtime.Serialization.Formatters.Binary.__B inaryParser.Run()\r\n
at
System.Runtime.Serialization.Formatters.Binary.Obj ectReader.Deserialize(HeaderHandler
handler, __BinaryParser serParser, Boolean fCheck, IMethodCallMessage
methodCallMessage)\r\n
at
System.Runtime.Serialization.Formatters.Binary.Bin aryFormatter.Deserialize(Stream
serializationStream, HeaderHandler handler, Boolean fCheck,
IMethodCallMessage methodCallMessage)\r\n
at
System.Runtime.Serialization.Formatters.Binary.Bin aryFormatter.Deserialize(Stream
serializationStream, HeaderHandler handler)\r\n
at
System.Runtime.Serialization.Formatters.Binary.Bin aryFormatter.Deserialize(Stream
serializationStream)\r\n
at
MyApp.MyMethod(String fileName, Boolean& versioned)

TIA.
Sek

Nov 17 '05 #1
1 2962
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?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Sek" <se****@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
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.__B inaryParser.ReadObjectWithMapTyped(BinaryObjectWit hMapTyped
record)\r\n
at
System.Runtime.Serialization.Formatters.Binary.__B inaryParser.ReadObjectWithMapTyped(BinaryHeaderEnu m
binaryHeaderEnum)r\n
at
System.Runtime.Serialization.Formatters.Binary.__B inaryParser.Run()\r\n
at
System.Runtime.Serialization.Formatters.Binary.Obj ectReader.Deserialize(HeaderHandler
handler, __BinaryParser serParser, Boolean fCheck, IMethodCallMessage
methodCallMessage)\r\n
at
System.Runtime.Serialization.Formatters.Binary.Bin aryFormatter.Deserialize(Stream
serializationStream, HeaderHandler handler, Boolean fCheck,
IMethodCallMessage methodCallMessage)\r\n
at
System.Runtime.Serialization.Formatters.Binary.Bin aryFormatter.Deserialize(Stream
serializationStream, HeaderHandler handler)\r\n
at
System.Runtime.Serialization.Formatters.Binary.Bin aryFormatter.Deserialize(Stream
serializationStream)\r\n
at
MyApp.MyMethod(String fileName, Boolean& versioned)

TIA.
Sek

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by ktn | last post: by
1 post views Thread by andrewcw | last post: by
2 posts views Thread by Maximus | last post: by
reply views Thread by CJ Taylor | last post: by
3 posts views Thread by Paulo Morgado [MVP] | last post: by
2 posts views Thread by Norman Chong | last post: by
8 posts views Thread by =?Utf-8?B?UGlnZ3k=?= | last post: by
reply views Thread by =?Utf-8?B?Y211cmFsaQ==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.