WCF in IIS, using MSMQ in workgroup mode

后端 未结 4 1411
悲哀的现实
悲哀的现实 2021-02-07 21:32

I\'ve been trying out MSMQ with WCF, but I can\'t seem to get it to work properly. I\'ve got the client (which sends messages to the queue) working, by using WCF and a service r

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-07 22:13

    Dennis van der Stelt provide a good sample on WCF + MSMQ.

    You may also be interested in this Q/A on MSDN:

    Q: When I run the sample that uses a default binding in workgroup mode, messages seem to get sent but are never received by the receiver.

    A: By default, messages are signed using an MSMQ internal certificate that requires the Active Directory directory service. In workgroup mode, because Active Directory is not available, signing the message fails. So the message lands in the dead-letter queue and failure cause, such as “Bad signature”, is indicated.

    The workaround is to turn off security. This is done by setting Mode = None to make it work in workgroup mode.

    Another workaround is to get the MsmqTransportSecurity from the Transport property and set it to Certificate, and set the client certificate.

    Yet another workaround is to install MSMQ with Active Directory integration.

提交回复
热议问题