COM Interop error, class not registered when using MSMQ library

I refer to the MSMQ v3 object library in the VS2010 C # project just for getting:

System.Runtime.InteropServices.COMException (0x80040154): Retrieving the factory COM class for the component with CLSID {0188401C-247A-4FED-99C6-BF14119D7055} failed due to the following error: 80040154 The class was not registered (Exception from HRESULT: 0x80040154 ( REGDB_E_CLASSNOTREG)).

I registered the library referenced:

regsvr32 C: \ windows \ system32 \ mqoa.dll

What am I missing? Assuming this works, what do I need to do during deployment so that the application runs on other computers with MSMQ installed?

+3
source share
2 answers

Do you use 64-bit windows? Are you compiling in x86 (default for VS2010)?

Consider registering mqoa from c: \ windows \ syswow64 (also with regsvr32).

0
source

Go to the Windows Programs and Features section. Open the MSMQ node and install the MSMQ triggers.

0
source

Source: https://habr.com/ru/post/1780540/


All Articles