Removed error getting MSMQ in C #

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

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

      

0


a source to share


1 answer


To check if your problems are resolved, make sure the anonymous user has read / write access to the queue.



Everyone means everyone is registered with the domain, at least for the queuing service.

+1


a source