BadImageFormatException in constructor

.NET Edition of the F-IN-BOX
Alexander
Posts: 2
Joined: Sun Apr 08, 2007 7:32 pm

BadImageFormatException in constructor

Postby Alexander » Mon Sep 17, 2007 5:22 am

Hi,

I have an exception "An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)" in this code:

Code: Select all

  this.fl = new f_in_box__lib.f_in_box__control();

Exception call stack:
at f_in_box__lib.f_in_box__wrapper.FPC_LoadRegisteredOCX()
at f_in_box__lib.AxCode..ctor()
at f_in_box__lib.f_in_box__control..ctor()
at MyClass.InitializeComponents

This error have appeared after migration to XP x64, I have not such problems when I was under Win2k.

Please, help me with solution...

Thanks in advice,
Alexander.

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Re: BadImageFormatException in constructor

Postby Softanics » Mon Sep 17, 2007 7:42 am

Thank you for your question.

Set the target platform as x32 and rebuild your project .
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

Alexander
Posts: 2
Joined: Sun Apr 08, 2007 7:32 pm

Postby Alexander » Tue Sep 18, 2007 5:34 am

Thanks, it works :)


Return to “.NET Edition”

Who is online

Users browsing this forum: No registered users and 18 guests

cron