|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Websphere MQ Support for Windows 2003 Enterprise Server x64 |
« View previous topic :: View next topic » |
Author |
Message
|
gotiashvili |
Posted: Mon Jul 07, 2008 12:42 am Post subject: Websphere MQ Support for Windows 2003 Enterprise Server x64 |
|
|
Newbie
Joined: 02 Apr 2008 Posts: 8
|
Hello everyone.
I have Windows 2003 Enterprise Server x64 os. I wrote application in C# which uses amqdnet.dll and amqmdxcs.dll. This application connects to Websphere MQ server and puts the message into the queue. When I build this application in x64 platform I have an error. I debuged my app and error occures when app tries to call MQCONNX.
I have following error:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at IBM.WMQ.MQClient.MQCONNX(String qMgrName, MQCNO& mqcno, Int32& pHconn, Int32& pCompCode, Int32& pReason)
at IBM.WMQ.MQClientConnector.MQCONNX(String qMgrName, MQCNO& mqcno, Int32& pHconn, Int32& compCode, Int32& reason) in C:\Documents and Settings\GOtiashvili\Desktop\IBM-MQ .NET 2.0\amqmdnet\IBM\WMQ\MQClientConnector.cs:line 54
at IBM.WMQ.MQQueueManager.Connect(String queueManagerName) in C:\Documents and Settings\GOtiashvili\Desktop\IBM-MQ .NET 2.0\amqmdnet\IBM\WMQ\MQQueueManager.cs:line 562
at IBM.WMQ.MQQueueManager..ctor(String queueManagerName) in C:\Documents and Settings\GOtiashvili\Desktop\IBM-MQ .NET 2.0\amqmdnet\IBM\WMQ\MQQueueManager.cs:line 96
at MQTest.Form1.button2_Click(Object sender, EventArgs e) in C:\Documents and Settings\GOtiashvili\Desktop\IBM-MQ .NET 2.0\MQTest\Form1.cs:line 188
at System.Windows.Forms.Control.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.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
MQTest
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Documents%20and%20Settings/GOtiashvili/Desktop/IBM-MQ%20.NET%202.0/MQTest/bin/x64/Debug/MQTest.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
amqmdnet
Assembly Version: 1.0.0.3
Win32 Version: 1.0.0.3
CodeBase: file:///C:/Documents%20and%20Settings/GOtiashvili/Desktop/IBM-MQ%20.NET%202.0/MQTest/bin/x64/Debug/amqmdnet.DLL
----------------------------------------
amqmdxcs
Assembly Version: 6.0.0.0
Win32 Version: 6.0.0.0
CodeBase: file:///C:/Documents%20and%20Settings/GOtiashvili/Desktop/IBM-MQ%20.NET%202.0/MQTest/bin/x64/Debug/amqmdxcs.DLL
----------------------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.832 (QFE.050727-8300)
CodeBase: file:///C:/WINDOWS/assembly/GAC_64/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Can anyone help me in resolving this problem ??
PS: When I build this application for x86 platform everything works well. But i want it for x64 because then I had to create this assamble in SQL Server 2005 x64.
Thanks in advance.
Best Regards G.Otiashvili |
|
Back to top |
|
 |
David.Partridge |
Posted: Wed Jul 23, 2008 11:25 pm Post subject: |
|
|
 Master
Joined: 28 Jun 2001 Posts: 249
|
WMQ 6 will run on x64 Windows but (IIRC) only supports 32 bit applications in bindings mode. I think that if your application needs to be 64 bit, you may be able to use the 64 bit client libraries. _________________ Cheers,
David C. Partridge |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu Jul 24, 2008 9:51 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
|
Back to top |
|
 |
thebert |
Posted: Thu Jul 24, 2008 5:14 pm Post subject: |
|
|
Newbie
Joined: 24 Jul 2008 Posts: 1
|
I think I am receiving the same error but a different configuration. I checked and am using a supported configuration; Vista 64, .NET 2.0, VS 2008. The program works on Vista 32, .NET 2.0 and VS 2008.
The MQ Client is 6.2.400.8133
It is compiled as a 32 bit program and the installation package places the code in the 32 bit program files. Here is th emessage received the MQQueueManager is constructed:
An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
I see people talking about the 64 bit client, but I be darned if I can find it.
Any ideas on how to approach this? |
|
Back to top |
|
 |
NuwanDk |
Posted: Wed Jul 21, 2010 9:37 pm Post subject: Solution |
|
|
Newbie
Joined: 21 Jul 2010 Posts: 1
|
I got the same error, when WMQ installed in the x64 bit machine and we are trying to connect WMQ through a .NET application.
Problem is your application build with (CPU ANY) mode. So it refers 64 bit dll. so it prompt an error System.BadImageFormatException.
Solution is build you application by setting Build properties to (x86) mode and then run it on x64 bit machine. It works without any error. Because it force to refer only 32bit DLL at the runtime.  |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|