MSMQ no error but message stuck in outgoing

3k Views Asked by At

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.

1

There are 1 best solutions below

2
On

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