This issue is driving me crazy. I have a WCF service that uses a COM .dll (which is located in SysWOW64) to do some operations. I registered it with Windows 2008 R2 but it doensn't work when the service is deployed on the server. My service is compiled for "any cpu".
When I create a console application it works fine. What am I doing wrong? Is it a permission issue? I changed the app-pool user to administrator but doensn't work either. When I try to change the pool to 32bit applications the pool crashes or the service times out.
The error message is:
System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {47E736CA-3EEA-11D5-8400-00A0C9CA15AD} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
Can anyone point me in the right direction?