CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2002
    Posts
    1

    Question 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?

  2. #2
    Join Date
    May 2002
    Posts
    1

    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.

  3. #3
    Join Date
    May 2004
    Posts
    1
    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
  •  





Click Here to Expand Forum to Full Width

Featured