OT: ObjectFactory access to a COM dll (x86) on x64 Server with iis7

OT: ObjectFactory access to a COM dll (x86) on x64 Server with iis7

Old forum URL: forums.lhotka.net/forums/t/10604.aspx


Jav posted on Wednesday, August 10, 2011

OT:
My ObjectFactory talks to a COM dll, which in turn uses a SqlServer DB and returns Objects back to the Object Factory.  The dll is a 32 bit x86 dll supplied by a third party as is the DB.

On my Windows 7 machine in the Development Web server, everything has been working fine.  I used the same technique to install the dll on Windows Server 2008 Server (Install the dll, register it by running c:\Windows\SYSWOW64\regsvr32.exe).  But on the server I keep getting the same dreaded error:

error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

My machine and Server have comparable OS.  The difference is that locally I am using the Development Web, and it is IIS 7 on the server. Could it be that the IIS configuration has something to do with the error. When I try to read my 800 page IIS 7 book, my eyes glaze over.  Seeing that so many smart people frequent this site, I though I'll post this question here.

Jav

Jav replied on Wednesday, August 10, 2011

There must be something magical about posting a message on this forum.  Problem got solved within 15 minutes.  Application Pool has a setting "Allow 32 bit Applications".  Set it to True.

Jav

Copyright (c) Marimer LLC