N/APosted on - 04/05/2012
I testing a program with dll files on a 64 bit OS when I got this error message. Well, it worked with a 32 bit OS but I needed to run it on a 64 bit OS. Honestly, I did not know what to do next. What should I do?
An attempt was made to load a program with an incorrect format.
(Exception from HRESULT: 0x8007000B)
DLL files didn’t work on a 64 bit OS
I think you encounter 32-64 bit compatibility issue and vice versa. You application tried to load a dll that compiled only for a 32 bit environment. If you have the source code of the faulting dll or module then you need to recompile it in order to support 64 bit OS. Normally 32-bit applications can run on 64 bit but your application it 64 bit ready and one of the components is not. You need to know the component that is causing the error. If is it something can be download from the internet then maybe you can download a 64 bit version of it. You can also contact the software vendor. Tips on how to determine the culprit.
Open Windows Event Log. Look for error events logged by your application. In most cases, you can see the details of the error on the General tab when you click the event details.
I hope it helps.