Message Queue Error: cannot find a formatter capable of reading message

前端 未结 9 1944
耶瑟儿~
耶瑟儿~ 2020-12-15 16:24

I\'m writing messages to a Message Queue in C# as follows:

queue.Send(new Message(\"message\"));

I\'m trying to read the messages as follow

9条回答
  •  独厮守ぢ
    2020-12-15 17:21

    Or you can use

     message.Formatter =
         new System.Messaging.XmlMessageFormatter(new Type[1] { typeof(string) });
    

提交回复
热议问题