msmq

MSMQ and queue errors

On the system our company develops we rely on Microsoft MQ to do IPC. So I've got some questions about how it works: 1 - If I've opened a queue, and while sending some data the result is a MQ_ERROR. What is the status of the queue after that? It remains open, or it will be closed? 2 - The same question, but for errors when setting the...

MSMQ slow queue reading

I am using an open source .Net library which uses MSMQ underneath. After about a week or 2, the service slows down (not timed exactly but general guess). It appears that what is happening is messages from MSMQ are only being read exactly once every 10 seconds. Normally, they are read instantly. So they will be read at T+10sec, T+20se...

Is MSMQ the right choice for this scenario...

I have an eCommerce app, which is hosted on 2 geographically different servers Server_A - hosted on our premises, contains product our ERP (Dynamic Navision) softare & database Server_B - hosted in external data center - web application & database (not on same server - just for simplification within this question) When someone places...

How to handle MSMQ delay problem?

Scenerio: Function A() ->creates the message and puts the message in the queue Listener -> checks constantly if theres a message in the queue and sends it to the service to process it and get the result and inserts the result into db Function B() ->gets the result from the db Suppose the result from the service hasn't com...

nServiceBus vs Mass Transit vs Rhino Service Bus vs other?

Just doing some quick spikes into possibly using a messaging system to process files that are in a nicely decoupled work flow system. What are the pro's and cons that people have found of using each of the above frameworks? What are the advantages of using these versus a hand-rolled MSMQ system with the WCF bindings and/or non-MSMQ solu...

transactional vs. non-transactional msmq

I keep seeing documentation saying that its not possible to send to a remote transactional msmq queue, outside the scope of a transaction. I'm finding this hard to believe because I think I've been doing exactly that for weeks now. I have a small app that posts messages to a remote queue that is transactional. Just to experiment with ...

NServiceBus MSMQ Send question

I have trouble sending a message via NServiceBus. I have an ASP.Net MVC web app, developing on Win7 x64, I have configured my web.config as <MsmqTransportConfig InputQueue="worker" ErrorQueue="error" NumberOfWorkerThreads="1" MaxRetries="5" /> <UnicastBusConfig> <MessageEndpointMappings> <add Messages="...

How-To Mock MSMQ MessageQueue

Hi, I want to Unit Test my application which use MSMQ but i found no way in order to Mock MessageQueue objects. var queuePath = @".\Private$\MyQueue"; MessageQueue queue = null; if (MessageQueue.Exists(queuePath)) { queue = new MessageQueue(queuePath); } else { ...

An unhandled access exception has occurred, msmq, Sharepoint error

I have an issue that is occurring after my server reboots. I have some features in SharePoint, for doing various things. One thing they do is add items into a couple of different MSMQ queues. Immediately after a server reboot, if I try to log in to SharePoint and I go to a custom page of mine, and click on a button within that page (whic...

MSMQ installation error on 2008 Server

This Windows 2008 SP2 The Error: Message Queuing: Installation failed Error: Attempt to install Message Queuing Server failed with error code 0x80070643. Fatal error during installation The following features were not installed: Message Queuing Services Message Queuing Server Found a msdn blog with the following reso...

Out of order messages possible with transactional queues in MSMQ?

I'm new to messaging and a little unclear as to whether it is possible for MSMQ to deliver out-of-order messages for transactional queues. I suppose it must be because if a message is not processed correctly (and since we will be using multiple "competing consumers"), then other consumers could continue to process messages while the fail...

MSMQ: Is there a way to set a "do not deliver before" value?

Is there a way to indicate a MSMQ message should not be delivered before a certain time? Essentially I want to be able to put messages back in the queue to be reprocessed in the future, say ten minutes from now. I would do this when the message processing has had some kind of error that I expect to be fixed in the near future. ...

MSMQ: What is the best way to read a queue in a non-blocking fashion?

If a queue is empty and you don't want to block for too long, you risk getting a System.Messaging.MessageQueueException. How would you tell the difference between a timeout on waiting for a message and a real error? ...

How do I use MsmqIntegrationBinding with a non-transactional queue?

This is my service contract: <ServiceContract> _ <ServiceKnownType(GetType(String))> _ Public Interface ISecurityMasterChanged <OperationContract(IsOneWay:=True, Action:="*")> _ Sub ValidateCusipInMessage(ByVal message As MsmqMessage(Of String)) End Interface This is my class Public Class SecurityValidator Implements ISecurityM...

MSMQ works - except with cursoring across the queue

We have a private MSMQ on a remote machine running Windows Server 2008 R2. It's not part of the same domain, but the queue permissions are set to allow Full Control to the Anonymous Logon user. Additionally, we've permitted unauthenticated RPC calls to be made. We're using normal From other machines, we can send messages to it, and we c...

Why do I have to re-install MSMQ when I come off and back on to the office network?

Hi I've got a really frustrating problem with MSMQ constantly refusing to work even though it's installed and started. I have MSMQ installed on my Vista Business laptop (MSMQ-Container;MSMQ-Server;MSMQ-Triggers;MSMQ-DCOMProxy) and this laptop is joined to the company domain. Registry shows that it's installed under Workgroup mode which...

WCF client certificare not valid

I try to send a message to MSMQ using WCF. I want to use Transport security and sign messages. However, when I set clientcertificate credentials and try to send message, an error is being thrown: "An error occurred while sending to the queue: The user certificate is invalid. (-1072824276, 0xc00e002c)". Certificate is stored in LocalMachi...

Permissions error accessing NServiceBus MSMQ from MVC .Net

I have written a mvc that uses nservicebus to publish messages. This works fine under Cassini. When trying to use IIS, I receive an error message when I call Create() to create the Bus. Access to Message Queuing system is denied. Description: An unhandled exception occurred during the execution of the current web request. Please review...

Connecting to a remote queue via the hosts file

I have different environments for my application (Dev -> Test -> Prod), and I'm using MSMQ. I also have the name of the queues (they are remote queues) I use via config files, in the following format: FormatName:Direct=SERVER_NAME\Private$\MY_QUEUE My problem is that SERVER_NAME is different in the different environments, and I'd lik...

MSMQ and Active Directory Integration

Hi Everyone, I've got 2 applications that utilizes MSMQ to pass information between 2 servers. One posts new information hourly, and runs without issue. The other app runs once nightly, and seems to be intermittently failing with the following error message: "A connection with Active Directory cannot be established. Verify that there...