1

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.

Piyush
  • 349
  • 1
  • 7
  • 22
  • "Authenticate"? We need a bit more information here. What properties are set on the queue (authenticated, privacy, etc.)? Transactional or not? What is the status of the outgoing queue? – John Breakwell Jan 14 '16 at 09:43
  • the State in outgoing queue is "Waiting to connect " and the Connecttion History says ""Failed to connect Winsock socket. Address:IP=xx.xx.xx.xx" – Piyush Jan 14 '16 at 12:35
  • 1
    Also this is a Transactional queue. To resolve the connection issue I have Enabled Remote Event Monitor (RPC-EPMAP) inbound rule in firewall have given full rights to Everyone on the queue. – Piyush Jan 14 '16 at 12:50

1 Answers1

0

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

John Breakwell
  • 4,667
  • 20
  • 25
  • No,I am trying to send message to remote queue and its stuck in outgoing. As per the article I have check to messaging services in Fire wall and the rule to allow is enabled. – Piyush Jan 14 '16 at 15:44
  • Ah, I misunderstood. I thought you meant you resolved the issue by changing the firewall rules. – John Breakwell Jan 14 '16 at 17:24