2010-12-15 64 views
3

我引用的MSMQ v3可在VS2010 C#项目对象库时只得到:COM互操作错误,没有注册类使用MSMQ图书馆

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

我已经注册库中的参考点:

regsvr32 C:\windows\system32\mqoa.dll

我在想什么? 假设这样做,我需要在部署时做些什么来确保应用程序可以在安装了MSMQ的其他机器上运行?

回答

0

您是否正在运行64位Windows?你在x86中编译(默认为VS2010)吗?

请考虑注册来自c:\ windows \ syswow64的mqoa(其中也包含regsvr32)。

+0

测试的两台机器都是32位的XP机器,我将调用库的目标平台更改为x86,没有任何更改。 – mattmck 2010-12-15 22:17:43

0

转到Windows中的程序和功能。打开MSMQ节点并安装MSMQ触发器。

相关问题