x86 COM Interop in x64 Environment.

I encountered a problem with one of my application. It stops working when I executed it on Windows 2003 Server 64-bit. It threw an exception:

Retrieving the COM class factory for component with CLSID {GUID HERE} failed due to the following error: 80040154.

The COM interop is an x86 interop, and that causes the exception. To address this issue, I have to recompile the app and change the target platform from AnyCPU to x86. After that, it works great.