ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » Generic exception;Could not load type 'IBM.WMQ.MQDestination

Post new topic  Reply to topic
 Generic exception;Could not load type 'IBM.WMQ.MQDestination « View previous topic :: View next topic » 
Author Message
sreenathgv
PostPosted: Wed Apr 06, 2011 1:14 am    Post subject: Generic exception;Could not load type 'IBM.WMQ.MQDestination Reply with quote

Newbie

Joined: 18 Feb 2011
Posts: 1

Hi,
I am trying to push Byte array into MQ using ASP.Net. But I am getting issue as “Generic exception;Could not load type 'IBM.WMQ.MQDestination' from assembly 'amqmdnet“. I am able able to push normal XML message .
Here is my code…any suggestions..
queue = queueManager.AccessQueue(….);
message = strInputMsg;
queueMessage = new MQMessage();
utf8Enc = new UTF8Encoding();
byte[] inputByteArray = utf8Enc.GetBytes(strInputMsg.ToCharArray());

//**********************************************

queueMessage.Write(inputByteArray);


queueMessage.CharacterSet = 2208;

queueMessage.Format = MQC.MQFMT_IMS_VAR_STRING;


queuePutMessageOptions = new MQPutMessageOptions();
queue.Put(queueMessage, queuePutMessageOptions);
queueManager.Commit();

Thanks
Sreenath
Back to top
View user's profile Send private message
shashikanth_in
PostPosted: Sat Apr 09, 2011 4:50 am    Post subject: Reply with quote

Centurion

Joined: 26 Feb 2009
Posts: 123

What version of MQ are you using? There has been a change in MQ v7 where MQDestination is an abstract class. You will need to use either MQQueue or MQTopic.

Bit surprising, XML message works but not Byte array. This does not seem related to the exception you are getting.
Back to top
View user's profile Send private message
MCardinal
PostPosted: Wed Apr 20, 2011 3:21 am    Post subject: Reply with quote

Novice

Joined: 06 Oct 2010
Posts: 18
Location: Ottawa, Canada

Yes,

I'm using .net in another language but to put a message it's basically the same thing.

Create and MQQueueManager Object
Create a MQQueue Object with argument the Queue Manager previously created, name of the queue, permission etc ...

Create an Object MQMessage
'Not necessary to have an MQPutMEssageOption object for simple put

call function Write for the object type you want to write
And call the function put from the Queue Object

Clear up your connection and environement
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Generic exception;Could not load type 'IBM.WMQ.MQDestination
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.