我正在尝试访问windows服务中托管的远程WCF服务(使用netMsmqBinding),但收到以下错误:
Message: System.TypeInitializationException: The type initializer for 'System.ServiceModel.Channels.Msmq' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'mqrt.dll': A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A)
at System.ServiceModel.Channels.UnsafeNativeMethods.MQGetPrivateComputerInformation(String computerName, IntPtr properties)我已经读到,如果没有安装msmq,可能会出现这个错误,但msmq不应该安装在本地计算机上...它被安装在它试图与之对话的远程机器上。
还有什么会导致这种情况呢?
发布于 2012-11-17 05:21:10
任何希望参与消息传输的机器都需要安装MSMQ。
这是因为MSMQ使用一种称为Store and forward的消息传递模式,这使得MSMQ对传输失败具有健壮性。
发布于 2016-04-01 10:14:54
转到程序和功能,然后选择打开或关闭功能。找到并启用Microsoft Message Queue (MSMQ)服务器。
https://stackoverflow.com/questions/13424050
复制相似问题