Reputation:

Remote MSMQ Receive Error in C#

I am trying to send and receive from a remote queue. I can get the send to work (I see the message in the queue), however, when I try to receive I get an access denied error. My computer is on a different domain than the remote queue's computer, so I'm pretty sure this has something to do with the issue. Here is the code snippet:

   MessageQueue queue = new MessageQueue(@"FormatName:DIRECT=OS:DEVAPP002\private$\queuetest");
   queue.Send("This is a test");
   Message msg = queue.Receive();  // Kaboom

Upvotes: 0

Views: 1749

Answers (1)

Vinko Vrsalovic
Vinko Vrsalovic

Reputation: 340171

To test if permissions are your problem, check that the Anonymous User has read/write access to the queue.

The Everyone user means everyone logged in the domain, at least with respect to the queuing service.

Upvotes: 2

Related Questions