HighTechTalks DotNet Forums  

Reading message from transactional MSMQ

CSharp microsoft.public.dotnet.languages.csharp


Discuss Reading message from transactional MSMQ in the CSharp forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Ale? Mer?un via .NET 247
 
Posts: n/a

Default Reading message from transactional MSMQ - 07-03-2004 , 09:53 AM






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("FormatNameIRECT=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>

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.