Hello,
I'm trying to Receive a message from transactional queue, which is private que on remote computer in my LAN.
I reference the queue using a direct format name. I use Framework 1.0.
While calling the Receive() method i get error "The transaction usage is invalid."
(BTW Send() method works OK)
Fragment of code:
private void button18_Click(object sender, System.EventArgs e){
MessageQueueTransaction mt = new MessageQueueTransaction();
mq = new MessageQueue("FormatName:DIRECT=OS:ales_mercun\pri vate$\Vrsta1");
mt.Begin();
System.Messaging.Message m = mq.Receive(new TimeSpan(0,0,1), mt);
mt.Commit();
}
Thanks in advance
Ski
--------------------------------
From: Ale? Mer?un
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>rytGlF8Wlkqu/Zjv2dwxuQ==</Id>