By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,463 Members | 771 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,463 IT Pros & Developers. It's quick & easy.

No Map For Object

P: n/a
Hello all,
I have some code:

Public Shared Function DeserializeMessage(ByVal stream As Byte(), ByRef obj
As Object) As Boolean

Try
Dim ms As MemoryStream = New MemoryStream(stream)
Dim bf As BinaryFormatter = New BinaryFormatter
ms.Position = 0
bf.Binder = New MessageBinder
bf.Binder.BindToType([Assembly].GetExecutingAssembly().FullName,
"AlertMessage")
obj = bf.Deserialize(ms)
Return True
Catch exp As System.Runtime.Serialization.SerializationExceptio n
Debug.WriteLine(String.Format("Exception in DeserializeMessage, {0}",
exp.ToString))
Return False
End Try
End Function

When I attempt to deserialize (obj = bf.Deserialize(ms), I receive the
No map for object 201326592
error. How can I determine what object this is? I suspect it is the
AlertMessage, which is a class of my own design. What can I do to resolve
this error?

Thanks,
Steven
Mar 24 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.