Questions tagged [system.messaging]
24 questions
8
votes
2 answers
Is System.Messaging.dll not available in .Net Core?
I have a C# Publisher-Subscriber project intended to make use of the MSMQ service in Windows. The code was developed in .Net Framework 4. I want to run it in .Net Core. But I am getting the error
"The type or namespace name "Messaging" donot exist…

jerinsibi
- 91
- 2
- 4
8
votes
5 answers
Using MSMQ - System.Messaging versus WCF
I have to port a VB 6.0 app to VB.Net (Framework 3.5). The application uses MSMQ heavily. I'm trying to figure out what are the advantages of using WCF over good ole System.Messaging. Are there any potential showstoppers when going with…

Sebastien Desilets
- 93
- 1
- 7
7
votes
3 answers
MSMQ: Is it possible to get the message count of a remote private queue?
I know there are other questions on this, but non actually answer this question.
The Code I have is:
using (var mQ = new MessageQueue(qPath))
{
Console.WriteLine("machine: {0}, name : {1}, path : {2}", mQ.MachineName…

andy
- 8,775
- 13
- 77
- 122
6
votes
1 answer
with MessageEnumerator RemoveCurrent how do I know if I am at end of queue?
In MSMQ on .NET, I'm using a MessageEnumerator to look through all the messages in the queue. I want to remove messages that meet a certain condition.
When I call MoveNext to step through the queue, I get back a boolean to tell me if the current…

Michael Levy
- 13,097
- 15
- 66
- 100
5
votes
2 answers
How to move a msmq message to a subqueue
Using the System.Messaging classes, how do I move a msmq message (in this case a poison message) to a subqueue?
Seems like this should be simple, but I haven't been able to figure it out.

Gabe Moothart
- 31,211
- 14
- 77
- 99
4
votes
1 answer
The queue does not exist or you do not have sufficient permissions to perform the operation. exception while sending message via MSMQ
I have created a function to send message via MSMQ but getting exception while executing.
below is my function.
public void SendMessageToQueue(ChessQueue chessQueue)
{
MessageQueue queue = null;
Message m = null;
if…

Jitendra Pancholi
- 7,897
- 12
- 51
- 84
2
votes
1 answer
MSMQ ReceiveByCorrelationID
We have a core system which communicates with its clients and other internal systems async through MSMQ. This is a good fit since clients are mobile phones sending sms’es and other systems has MQ adapters. Also these communication processes are…

flalar
- 1,181
- 3
- 12
- 23
2
votes
1 answer
MessageQueue.Send occasionally fails with InvalidOperationException, BadEnumerator
I have a non-tx queue with a receiver in one process and a PowerShell script which uses the MessageQueue.Send( object, label ) method to enqueue messages.
Occasionally I get this weird error in the PowerShell script (the sender):
An error occurred…

Johan Andersson
- 185
- 2
- 8
2
votes
1 answer
System.Messaging/MSMQ not accessible in ASP.NET Core 1.0
I've been playing around a bit with MVC 6 and a few other of the newer web development tools (Angular 2.0, etc.) and I've run into a bit of a problem setting up a webpage that utilizes MSMQ. For reference, I'm using VS2015 Update 2, which I believe…

Myachizero
- 47
- 1
- 6
2
votes
2 answers
MSMQ messages disappear when they get to remote server
I have to create a MSMQ messaging mechanism between two servers in the same domain, SenderServer (MS Server 2012) and ReceiverServer (MS Server 2008 R2).
I created a private, transactional queue in ReceiverServer .\private$\receiver, I gave receive…

CiccioMiami
- 8,028
- 32
- 90
- 151
2
votes
5 answers
.Net User Messaging System
I am wondering if there is a framework out there for .NET to help me with sending messages to users. I would love to be able to write all my messages to a single repository. I would then like to be able to send these messages out to a user based…

bechbd
- 6,206
- 3
- 28
- 47
2
votes
1 answer
How to get the current permissions for an MSMQ private queue?
Does anybody know how to read the user\group access permissions from an MSMQ private queue in powershell? I'd like to do this as a sanity check for my deployment script that installs NServiceBus services to make sure the service user actually has…

Jake Levitt
- 120
- 1
- 9
1
vote
2 answers
Problem adding GAC reference to VS2008 project
Okay, so this isn't strictly a programming question, but it is a programming-related question.
I have a C# winforms project that I am trying to add a reference to the System.Messaging dll.
However, when I add the reference (from the .net tab of the…

Andrew Rollings
- 14,340
- 7
- 51
- 50
1
vote
0 answers
System.Messaging.MessageQueue and MSMQ COM API interaction
In Pro MSMQ from Apress, it says on p. 26, that queues grouped by the same Service Type GUID can be reached by client applications using "the Directory Service without needing to know their physical location. This is a good mechanism for…

devlord
- 4,054
- 4
- 37
- 55
1
vote
1 answer
serialize objects to transfer into the messagequeue instance
I was going through the msdn post of system.messaging namespace and come across a doubt about object serialization. I want to know that is it always important to that object must be xmlserializable in order to be transferred over a MessageQueue…

Amit Kaushal
- 429
- 1
- 9
- 25