This short article shows you how to resolve the error “An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)“.
You need to go to the IIS Manager.
Go to the Application Pools.
Select a pool that you face problem.
Click Advance Setting.
Set the Enable 32-bit Application to True.