An unhandled exception of type 'System.BadImageFormatExcepti

Having problems with building or using the CefGlue .NET/Mono binding? Ask your questions here.

Moderator: fddima

An unhandled exception of type 'System.BadImageFormatExcepti

Postby hawkgao » Sun Jul 28, 2013 9:12 am

Hi, All
I download Xilium from "https://bitbucket.org/xilium/xilium.cefglue/src". Meanwhile, download cef binary from "http://xilium.dmitriid.com/download/cef/3.1453.1236/cef_binary_3.1453.1236_windows_xilium.7z". I built CefGlue.Demo.WinForms, and put libcef.dll and other binaries in the same folder with Xilium.CefGlue.Demo.WinForms.exe. Then, I launch Xilium.CefGlue.Demo.WinForms.exe meet following excepiton,

A first chance exception of type 'System.BadImageFormatException' occurred in Xilium.CefGlue.dll
An unhandled exception of type 'System.BadImageFormatException' occurred in Xilium.CefGlue.dll
Additional information: Could not load file or assembly ( HRESULT:0x8007000B)

That cause by call crossing 64/32 executable binary. But I checked Xilium.CefGlue.Demo.WinForms.exe, libcef and other dlls by PE tool. They are all have same machine code 014C, means i386.

Could anyone can help me?

Thanks,
Shawn
hawkgao
Mentor
 
Posts: 83
Joined: Thu Aug 04, 2011 9:40 pm

Re: An unhandled exception of type 'System.BadImageFormatExc

Postby Desu » Sun Jul 28, 2013 3:55 pm

prebuilt libcef.dll is 32bit make sure you are building as x86(not any-cpu or x64)
Desu
Techie
 
Posts: 11
Joined: Mon Jun 24, 2013 3:05 pm


Return to CefGlue Forum

Who is online

Users browsing this forum: No registered users and 17 guests