Topic
  • 1 reply
  • Latest Post - ‏2017-10-19T13:28:25Z by fjb_saper
MadhuraRai
MadhuraRai
2 Posts

Pinned topic Unable to load mqdc.dll

‏2017-08-17T13:14:25Z |

Hello,

 

I am trying to connect to queueManager  and find the below error . I am using Windows 2008 R2 server , MQseries Client 8.0 version and Visual Studio 2013. I am using 64 bit machine with MQseries Client 8.0 version is also 64 bit.

 

Could you please let me know where am i going wrong?

 

 queueManager = new MQQueueManager(QueueManagerName,  channelName, connectionName);

 


System.DllNotFoundException was unhandled
  HResult=-2146233052
  Message=Unable to load DLL 'C:\Program Files\IBM\WebSphere MQ\bin\mqdc.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
  Source=NativeUnmanagedAssembly
  TypeName=""
  StackTrace:
       at NativeUnmanagedType.MQCONNX(String qMgrName, MQCNO& mqcno, Int32& pHconn, Int32& pCompCode, Int32& pReason)
       at IBM.WMQ.Nmqi.UnmanagedNmqiMQ.MQCONNX(String pQMgrName, MQCNO& pConnectOpts, Hconn parentHconn, Phconn phconn, Int32& pCompCode, Int32& pReason)
       at IBM.WMQ.Nmqi.UnmanagedNmqiMQ.MQCONNX(String pQMgrName, MQConnectOptions pConnectOpts, Phconn phconn, Int32& pCompCode, Int32& pReason)
       at IBM.WMQ.MQQueueManager.Connect(String queueManagerName)
       at IBM.WMQ.MQQueueManager..ctor(String queueManagerName, String Channel, String ConnName)
       at MQExample.MQTest.ConnectMQ(String strQueueManagerName, String strQueueName, String strChannelInfo) in c:\Users\madhura_rai\Documents\Visual Studio 2013\Projects\MQExample\MQExample\MQTest.cs:line 47
       at MQExample.Form1.button1_Click(Object sender, EventArgs e) in c:\Users\madhura_rai\Documents\Visual Studio 2013\Projects\MQExample\MQExample\Form1.cs:line 33
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
       at System.Windows.Forms.Button.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at MQExample.Program.Main() in c:\Users\madhura_rai\Documents\Visual Studio 2013\Projects\MQExample\MQExample\Program.cs:line 19
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: 

 

 

 

  • fjb_saper
    fjb_saper
    240 Posts

    Re: Unable to load mqdc.dll

    ‏2017-10-19T13:28:25Z  

    You have an unmanaged assembly and did not install the MQ Client ?