This is an interesting problem I spotted the other day when someone messed around with my lovely dev server.
The solution is really simple it is a matter of changing the application pool to x64... how?
go to Start->type InetMgr.exe -> Expand your server ->Application Pools -> Select the application pool you think it could be wrong->Advance Settings... -> Under general, change "Enable 32-Bit Applications" to False. Click ok!