Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSMQ: Recive works but BeginReceive doesn't

Status
Not open for further replies.

urielk

Programmer
Jun 13, 2001
15
CA
Firts the Installation detais:

I installed the MSMQ Server and client in two W2K machines in my domain.
I explored the active directory and the objects look fine.
The only issue was when installing the client it couldn't find the Domain Controller Server automatic... but I entered the computer name and did the work.
I am able to MQPing both computers.

OK, so assuming that the MSMQ Client-Server works:

Problem-1)
I run any of the MSMQ examples (.Net) and I can create queues and Receive messages in a single machine. But If I try to receive async: BeginReceive it never works.

//works fine
System.Messaging.Message m = messageQueue1.Receive();

But if I try:
//doesn't work
messageQueue1.BeginReceive ();

and then

public static void MyReceiveCompleted(Object source,
ReceiveCompletedEventArgs asyncResult)

The callback is never invoked

Problem-2)
I tried to find a public queue in a remote server:
if (MessageQueue.Exists("myServer\\MyPublicQueue"))

it fails with the error message:
Cannot find controller.

Any advice?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top