I've posted this message in "External Progams" subforum a few days ago but I had no reply at all, so I'm reposting here hoping in better luck.
I've written a little application using VB.NET that automates some document filling via OpenOffice.org.
While the program works great on dev machine (Vista 32 bit) il fails bootstrapping the UNO environment on a Windows 2003 server 64 bit with the following error message (pasted whole message for completness):
Code: Select all
************** Exception Text **************
System.BadImageFormatException: Could not load file or assembly 'cli_cppuhelper, Version=1.0.16.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e' or one of its dependencies. An attempt was made to load a program with an incorrect format.
File name: 'cli_cppuhelper, Version=1.0.16.0, Culture=neutral, PublicKeyToken=ce2cb7e279207b9e'
at AutoMailMerge.frmMailMerge.btnMailMerge_Click(Object sender, EventArgs e)
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)
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
AutoMailMerge
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Documents%20and%20Settings/Administrator/Desktop/cli%20test/automailmerge.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
cli_uretypes
Assembly Version: 1.0.3.0
Win32 Version:
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/cli_uretypes/1.0.3.0__ce2cb7e279207b9e/cli_uretypes.dll
----------------------------------------
cli_basetypes
Assembly Version: 1.0.14.0
Win32 Version: 1.0.14.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/cli_basetypes/1.0.14.0__ce2cb7e279207b9e/cli_basetypes.dll
----------------------------------------
cli_oootypes
Assembly Version: 1.0.3.0
Win32 Version:
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/cli_oootypes/1.0.3.0__ce2cb7e279207b9e/cli_oootypes.dll
----------------------------------------
Is there any issue with 64bit Windows and CLI bindings?
Thank you.