Somebody
Somebody

Reputation: 2789

Retrieving the COM class factory for component with CLSID{} failed

I have two projects in the same computer that use the same dll (InputsSanitizer), the only difference between them is one is in IIS 7 and is a website, and the other one is not in IIS 7 and is a webapplication.

The one in IIS 7 is giving me this error:

enter image description here

The other one has no error at all, any advice here?

Upvotes: 1

Views: 1608

Answers (2)

Somebody
Somebody

Reputation: 2789

enter image description here

Enable 32-Bit Applications in the IIS Application pool.

Hope this help someone else.

Upvotes: 0

acelent
acelent

Reputation: 8135

0x80040154 is REGDB_E_CLASSNOTREG, "Class not registered". {CE32ABF6-475D-41F6-BF82-D27F03E3D38B} stands for CAPICOM, a discontinued, 32-bit component.

I'm most sure this is a bitness mismatch problem. Recompile your project targeting x86 and enable 32-bit application in IIS.

Upvotes: 1

Related Questions