Using a .net framework Web API project we want to create a listener(consumer) for our MQ queue. We are using XMS.Net as we are interested in asynchronous style of receiving messages. However, while creating a connection we are getting error:
Could not load type 'IBM.WMQ.ManagedCommonServices' from assembly 'IBM.XMS.Client.WMQ, Version=8.0.0.7, Culture=neutral, PublicKeyToken=d2666ab12fca862b'.
As per http://www-01.ibm.com/support/docview.wss?uid=swg1IC89514 this issue is fixed but we are still facing it using version 8.0.0.7.
This is working fine for .Net framework console application but with Web API project it is failing.
As workaround we also tried adding following in app.config for Web API but no luck -
<appSettings> <add key="MQCSCLASS" value="amqmdnet(IBM.WMQ.ManagedCommonServices)"/> </appSettings>
Note: The MQ client is not installed on my machine. We have referred - amqmdmsg, amqmdnet, amqmdnm, amqmdnsp, amqmdxcs dlls into the project.