473,396 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Reading message from transactional MSMQ

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>
Nov 16 '05 #1
0 2983

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Na | last post by:
hi all: i'm new to msmq in C#, i 'm looking for a example of reading message once a new message coming (Event), but there are not C# examples in msdn, someone can help me or give me any good...
1
by: Lee Zeitz | last post by:
Hello, I have a need to read messages from MSMQ (on the order of 350,000 messages per day) that have a body that is text-only (not in XML format). There are 3 message formats to select from...
4
by: Just D. | last post by:
Did anybody use this Message Queuing and knew all details about it? What's the physical limit of this Message Queuing system, number of messages, mbytes, message size? Where it stores messages,...
2
by: Bob Clegg | last post by:
Hi, First venture into using MSMQ Prog A owns queue and is receiving. Prog B detects queue and sends message Prog B appears to be working in that I can see the messages being created in the...
2
by: kd | last post by:
Hi All, Can Windows message queues be used to communicate between 2 applications running on the same computer? I am not sure whether this is possible, if it is possible how can this be compared...
2
by: DBC User | last post by:
Hi All, I am going to develop two application which will talk to each other using MSMQ. I have couple of questions 1. Do we need to install anything extra in client PC to use MSMQ? Since...
5
by: DBC User | last post by:
Hello, Is there an alternative approach to MSMQ for delivering messages? I am planning to develop an app which I don't want clients to install MSMQ (or do anything otherthan install my app). I...
0
by: TweetyRocks | last post by:
Hi All, I have 2 Dot Net Windows services. The 1st service inserts a message into an MSMQ queue. The second service picks it up from the queue and processes it. It then removes it from the queue...
1
by: cmrhema | last post by:
Hi, All I have a program in C# where I am reading all the messages from a MSMQ. I have declared a class Queue as below public class MyQueue { public static Queue myqueue;...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.