Questions tagged [msmq]

Microsoft Message Queuing (MSMQ) is a message queuing implementation developed by Microsoft and deployed as part of its Windows platform since 1996. MSMQ is included on most versions of Windows but it's not installed by default.

Microsoft Message Queuing (MSMQ) is a message queuing implementation developed by Microsoft and deployed as part of its Windows platform since 1996. MSMQ is included on most versions of Windows but it's not installed by default.

1964 questions
13
votes
4 answers

MSMQ Receive() method timeout

My original question from a while ago is MSMQ Slow Queue Reading, however I have advanced from that and now think I know the problem a bit more clearer. My code (well actually part of an open source library I am using) looks like…
mike
  • 3,146
  • 5
  • 32
  • 46
13
votes
4 answers

MSMQ cannot delete or purge a queue

I'm very new to MSMQ. We have a critical system using MSMQ and it is not able to start due to insufficient resources. It appears that MSMQ is at capacity. I am trying to purge messages (or even delete unneccessary queues), but I receive the…
Christopher Bennage
  • 2,578
  • 2
  • 22
  • 32
13
votes
3 answers

Why is MSMQ faster than WCF QueueService?

I have self-hosted WCF service in console with netNamedPipeBinding binding. The service has just one empty method Send(DataTable bulk) [ServiceContract] public interface IWcfQueueService { [OperationContract] void Send(DataTable bulk); …
theateist
  • 13,879
  • 17
  • 69
  • 109
12
votes
3 answers

Why Powershell's New-WebBinding commandlet creates incorrect HostHeader?

I am trying to add an MSMQ binding for my IIS Web Site, correct binding should look like this: So I am executing following line in PowerShell: New-WebBinding -Name "My Site" -Protocol net.msmq -HostHeader "localhost" and it creates the following…
Restuta
  • 5,855
  • 33
  • 44
12
votes
4 answers

WCF in IIS, using MSMQ in workgroup mode

I've been trying out MSMQ with WCF, but I can't seem to get it to work properly. I've got the client (which sends messages to the queue) working, by using WCF and a service reference. The code that does this is more or less this: static void…
Erik van Brakel
  • 23,220
  • 2
  • 52
  • 66
12
votes
2 answers

to MSMQ or not to MSMQ? (or SQL Table as the Queue)

I've got a distributed system where there will be 1 SQL Server, 1-n processing servers, and 1-n data suppliers (hardware devices across the network). The data being supplied will require processing prior to going into the relational DB structure -…
Ed Sinek
  • 4,829
  • 10
  • 53
  • 81
12
votes
3 answers

How to configure MessageEndpointMapping by namespace in NServiceBus

I am trying to configure my message endpoint mapping in my NServiceBus configuration by sending messages from different namespaces to different endpoints. As such, I have configured the following in my web.config:
SteveBering
  • 947
  • 1
  • 12
  • 30
12
votes
4 answers

Enum not serializing

I have a WCF service. it is bound to an MSMQ but that is not the issue here. I can serialize an object which has a base class and an interface implemented in the base class and the concrete class derives from the base class - this works…
Ahmed ilyas
  • 5,722
  • 8
  • 44
  • 72
11
votes
5 answers

Cant send to MSMQ with 2 DNS names

We're Having an issue with sending an MSMQ message to the second DNS name on a server. If we send the IP for that same server, we're fine, but thats not where we are going architecturally. Any ideas as to why MSMQ would care about which name it…
Bob
  • 1,484
  • 5
  • 22
  • 44
11
votes
1 answer

How to implement a competing consumer solution?

As a exercise I'm trying to find an example which implements competing consumer. many producers - > MSMQueue <- competing consumers So far I did not find any documentation on how to achieve this. My first attempt to figure out how is implemented…
ruslander
  • 3,815
  • 4
  • 32
  • 34
11
votes
4 answers

How to know programmatically whether Message Queueing is enabled on the machine or not?

I know that when I try to create new MessageQueue, system throws InvalidOperationException if the Message Queuing is not enabled. But how to know programmatically whether Message Queueing is enabled on the machine or not? I am using C# 2.0 & C# 4.0…
Learner
  • 4,661
  • 9
  • 56
  • 102
11
votes
3 answers

programmatically add private queues in MSMQ

I have list of over 20 queues that needs to be added as private queue in MSMQ. Is there a way to do it using Command Line C# programming If there is a way to do using some sort of script or .net programming then I could add it with out manually…
irvinedotnet
  • 175
  • 1
  • 1
  • 8
11
votes
1 answer

How to publish messages asynchronously to MSMQ in .NET Core?

There doesn't seem to be a client available, or maybe I'm just looking in the wrong namespace. How is this expected to be done, or is the answer that I have to find another message service?
Jeremy Holovacs
  • 22,480
  • 33
  • 117
  • 254
11
votes
1 answer

MSMQ - can a queue survive a queue process restart/server restart

Can an MSMQ queued messages survive a service/server restart? What I mean is that if a queue has messages and the server were to experience a hard restart, would the messages be still available in the queue after the restart?
Moiz Tankiwala
  • 6,070
  • 7
  • 38
  • 51
11
votes
6 answers

How to read msmq messages (me, not the pc)

I want to look inside my queues, the msm console snapin has this property dialog, but it is very difficult to read and the messages which are important to me are encoded and look like this: 3C 3F 78 6D 6C 20 76 65
Jan
  • 6,532
  • 9
  • 37
  • 48