0

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
Arion
  • 31,011
  • 10
  • 70
  • 88

1 Answers1

1

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.

Vinko Vrsalovic
  • 330,807
  • 53
  • 334
  • 373
  • I agree, it is likely that AnonymousLogon does not have permissions to receive messages. A different domain user would appear as this user which does not fall under the Everyone group. – Mike Lorenzana Jan 17 '14 at 19:51