I have an SSIS Script task (written in C#) that is trying to write to a WebSphere MQ Queue. Obviously we have to reference a specific dll to help make this connection, however I am getting an error involving a separate dll. When the program attempts to open a connection to the queue, the following error appears:
{"Unable to find an entry point named 'zstMQGET' in DLL
'C:\\Program Files (x86)\\IBM\\WebSphere MQ\\bin\\mqic.dll'.":""}
System.Exception {System.EntryPointNotFoundException}
I found the dll in the folder and tried to add it as a reference, however VS2010 will not allow this. I get an error saying “Please make sure that the file is accessible, and that it is a valid assembly or COM component.”
I should also add that I’ve downloaded Dependency Walker to inspect the mqic.dll and ran into the following error messages:
“Warning: At least one delay-load dependency module was not found.”
“Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.”
EDIT
The part of the code that is causing an error is an MQQueue object’s get() call. Both of these queue types are local, and the Dts.Variables are set accordingly
This turned out to be a result of the code being written for MQ Client 5.3 instead of 7.1. Simply making this change solved our problem.