WCF MSMQ DllNotFoundException

1

I am trying to access a remote WCF service (using netMsmqBinding) hosted in a windows service and am getting the error:

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)

I have read that this error may come up if msmq is not installed, but msmq is not supposed to be installed on the local machine... it is installed on the remote machine it is trying to talk to.

What else can cause this?

wcf
msmq
wcf-binding
asked on Stack Overflow Nov 16, 2012 by user1830197

2 Answers

0

Any machine wishing to participate in the transmission of messages requires MSMQ to be installed.

This is because MSMQ uses a messaging pattern called Store and forward, which is what makes MSMQ robust to transmission failures.

answered on Stack Overflow Nov 16, 2012 by tom redfern
0

Go to Programs and Features and then Turn Windows Feature on or off. Find Microsoft Message Queue (MSMQ) Server and enable it.

credit to: https://stackoverflow.com/a/26705197/782856

answered on Stack Overflow Apr 1, 2016 by Kim • edited May 23, 2017 by Community

User contributions licensed under CC BY-SA 3.0