Configuring IIS to Run 32-bit Applications on 64-bit Windows
Configuring IIS to Run 32-bit Applications on 64-bit Windows
If your application is using any 32bit dll, IIS on 64 bit machine needs to be switched to support 32 bit applications. Otherwise you will get an error message saying:
Could not load file or assembly 'XXXX' or one of its dependencies. An attempt was made to load a program with an incorrect format.
In II6 you have to run script in order to get working 32bit app on your 64bit IIS:cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 “true”
II7 has option in Advanced Settings of your application pool. Default value is false.