I’ve built and installed my service from vs2010 onto a 64bit machine.
My problem comes in when my service references 32 bit dlls (spssio32.dll to be precise) – I get the error in my event viewer : “System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)”
Any help on the matter would be appreciated.
Regards,
Byron Cobb.
Is your service code written in a .NET language? If so, you need to mark it as targeting
x86rather thanAny CPU(via Project properties / Build / Platform target).(By default, .NET code targets
Any CPU, meaning that on 64-bit machines it will compile into x64 machine code. Because such 64-bit code can’t load 32-bit DLLs, that can lead to failures like the one you’re seeing. Where code has a dependency on a 32-bit DLL, it needs to always compile to 32-bit machine code even on 64-bit machines, hence setting the target platform tox86.)