How to use MSMQ in WCF?

Posted by Jader Dias on Stack Overflow See other posts from Stack Overflow or by Jader Dias
Published on 2010-05-04T21:25:47Z Indexed on 2010/05/04 22:28 UTC
Read the original article Hit count: 539

Filed under:
|
|

I can work with many WCF bindings, except netMsmqBinding. All I get is:

CommunicationObjectFaultedException: "The communication object, System.ServiceModel.ServiceHost, cannot be used for communication because it is in the Faulted state."

at System.ServiceModel.Channels.CommunicationObject.Close(TimeSpan timeout)

I tried it in a Windows Server 2008 R2 with the following features installed

  • Message Queueing
  • Message Queueing Services
  • Message Queueing Server
  • Message Queueing Triggers
  • HTTP Support
  • Multicasting Support
  • Message Queueing DCOM Proxy

I tried also to add manually a private Message Queue in the Server Manager but it didn't work.

The address I am trying to expose is:

net.msmq://localhost/private/MyServiceName

© Stack Overflow or respective owner

Related posts about msmq

Related posts about wcf