简体   繁体   中英

MSMQ no error but message stuck in outgoing

I am trying to send MSMQ message using TCP but the message is just stuck in Outgoing queue . Also when I am creating MessageQueue object it does not throws any error but on putting a breakpoint and trying to see the Properties I can see errors like for Authenticate i get error "The specified format name does not support the requested operation. For example, a direct queue format name cannot be deleted.".

The for connection I am using below code.

MessageQueue mq = new MessageQueue("FormatName:DIRECT=TCP:<IP Address>\\PRIVATE$\\TestQueue");

Even the OS format is not working. Please help.

You are trying to receive messages from a remote queue. This is very different to sending messages to a remote queue. One uses RPC and the other MSMQ.

As you discovered, opening up RPC ports in the firewall is essential.

Understanding how MSMQ security blocks RPC traffic

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM