Windows 64 bit cli_cppuhelper.dll incorrect format

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
Stojilcoviz
Posts: 4
Joined: Mon Aug 24, 2009 6:23 pm

Windows 64 bit cli_cppuhelper.dll incorrect format

Post by Stojilcoviz »

Hello,

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
----------------------------------------
What I've found googling around and looking at the System GAC is that cli_uretypes, cli_basetypes and cli_oootypes are listed as MSIL while cli_cppuhelper is listed as x86 processor architecture.

Is there any issue with 64bit Windows and CLI bindings?

Thank you.
djunges
Posts: 16
Joined: Tue Feb 19, 2008 4:54 pm

Re: Windows 64 bit cli_cppuhelper.dll incorrect format

Post by djunges »

i have the same problem now, have you found a solution ?
if yes, can you please post the solution here ?

regards
Daniel Junges
giciorek
Posts: 4
Joined: Sat Mar 05, 2011 3:42 pm

Re: Windows 64 bit cli_cppuhelper.dll incorrect format

Post by giciorek »

HI,

same problem here.
I have try also to set the solution to x86 but this also don't work.

How to fix this problem?

Regards,

giciorek
OpenOffice 3.3 on x64
giciorek
Posts: 4
Joined: Sat Mar 05, 2011 3:42 pm

Re: Windows 64 bit cli_cppuhelper.dll incorrect format

Post by giciorek »

set to x86 works on windows forms... on ASP.NET not :(
OpenOffice 3.3 on x64
Post Reply