|
-
May 29th, 2002, 10:52 AM
#1
deserializing msmq message to a struct or class
Hi,
I am using msmq to send and receive messages for a certain app. I am putting an object in the message bidy (some type of struct to pass some data along). Sending works fine, but I am having problems when attempting to read the message body. I can't seem to get the TargetTypes/TargetTypeNames properties right. I get the following error:
An unhandled exception of type 'System.TypeLoadException' occurred in system.messaging.dll
Additional information: Could not load type MakeMessage from assembly System.Messaging
Any thoughts/ideas on how this is done?
-
May 30th, 2002, 09:18 PM
#2
passing object into queue
I believe that your object must support (derive from) the IPersistStream interface. The queue must persist the object to a message stream and then reinstantiate when the invocation actually occurs.
-
May 23rd, 2004, 09:42 PM
#3
The name of the type must be fully qualified. A similar case might involve the 'String' type. When you designate String as a type, however, you'd have to use "System.String".
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|