Click here to Skip to main content
16,012,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 5-Apr-11 23:48pm
v2
Comments
walterhevedeich 20-Apr-11 3:51am    
tried searching the error in google? I tried to put this in google "Generic exception;Could not load type 'IBM.WMQ.MQDestination' from assembly" and got about 65 results.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900