msmq

Set MSMQ permissions using VBScript (via Nant)

We are using Nant to deploy an application and need to create some MSMQ Queues during the process. We use Nant/psexec/cscript to call a VBScript to create the queue itself but we also need to set the permissions. Can this be done programmatically? I am aware of Setting permissions on a MSMQ queue in script however that question asks ...

Is WCF RoutingService transactional?

Hello everyone, In WCF4 we a provided with a great feature - routing services. MSMQ4 supports remote transactional read. So now building simple publish-subscribe on WCF seems to be a piece of cake. But I get one doubt. Does the System.ServiceModel.Routing.RoutingService, which implements routing stuff for messages, work in a transaction...

Instrumentation of method calls in a web app using PostSharp

Example: I add a PostSharp attribute to a method to ensure a stopwatch is started before the method is called, and stopped just after the call returns. This method is used in a web app, so it will be called by multiple threads. I store the result of the stopwatch timing in a static threadsafe collection, for use by all threads. This c...

Listen to msmq queue

Following the is the code I have for listening to messages from Windows form. I have noticed that when I click on send it sends a message to MyQueue but at that time I was hoping the event mq_ReceiveCompleted(object sender, ReceiveCompletedEventArgs e) should get called but it is not, in other words I am trying to subscribe to MyQueue f...

How to convert MSMQ message body into byte[]?

In my C# application I receive MSMQ messages. Sometimes the message body is XML which I can handle without any problems. Sometimes the message could be of any data type so I just need to put it into a database table. To do this I need to take the message body and convert it in a “byte[]” type. My question is, how to convert the message b...

Message Queue terminates program operation.

I'm writing a program which uses a MessageQueue to receive data from another program. It works perfectly on my computer, but bombs on another. Both computers are running XP. I have installed .Net 4.0 Client Profile, and turned MSMQ on, and restarted the computer since then. Via a series of message boxes, I narrowed the error down to this...

How to send an XDocument via MSMQ (using WCF)?

I have an order as an XDocument and I simply want to stick it in the body of a message and send it to an MSMQ queue. I've effectively serialized the order object already and now I just want to send it. Is this possible? I'm using WCF here but I'd happy with a plain old msmq solution. I'm getting an error here indicating that an XDocumen...

nServiceBus and security: what is best practise?

What do people do with security issues when using nServiceBus/msmq? Thinking about for example message encryption, message signing (validation?) etc How do you know that the message is not sent to the queue from someone else. or that someone has tampered a message. ...

What could prevent NServiceBus from moving messages to the error queue if there are exceptions when processing?

I have an application using NServiceBus to process messages, and while debugging I'm finding that exceptions may be thrown, and the message is lost. I've checked both the main and error queues, and the message was only attempted once. Are there any common pitfalls that could cause this to happen? ...

subscribe to msmq

How to a subscribe to a queue in msmq using c#. Assuming i have a client as a win form and would like to subscribe to a que, everytime a message is arrived in the que i would like the form to be notified about it. Any example. Thanks ...

MSMQ Get All Private Queues

Is there any way to get all of the queues on MSMQ 5.0 using .NET 4.0? Cheers. ...

Setting up MSMQ for clustering

Can someone point me to some good resources about setting up MSMQ for queue clustering? I'm interested in help with: Actually setting up the clustered MSMQ nodes, and making it function Setting up an application to send messages to a clustered queue. Setting up applications (at least 2) to read from the same clustered queue. ...

How can you read the count of an MSMQ on another machine?

My program is successfully using .NET's MessageQueue class to read from an MSMQ. The queue is user configurable, and is sometimes on the local machine, and sometimes on a remote machine. The user can specify the remote machine either by name or IP address, and the queue name (and I'm only using "Private" queues). I want to display to ...

NServiceBus without input queue

Is it possible to use NServiceBus in an application without having any input queues? Reason is, I have an ASP.NET MVC application that sends messages to other applications when something happens (e.g. a new user registers). The web application never recieves any responses or other messages and therefore I would like not to bog the app. ...

Private and public queues on MSMQ

Is it possible for server A to access a private queue from server B? ...

MSMQ: Remote message queue access

It is possible have one MSMQ queue in one machine and read masseges from that queue from another machine? If yes, what is the path i should use in Create method from MessageQueue class? Thanks ...

MSMQ: Remote access in transactional context

Considering MSMQ version 3.0 Hello. I want to send and read messages from a remote MSMQ queue. In version 3.0 remote reads with transactions are not supported. In version 4.0 transactional reads can be made not with receive method but with peek. I saw a problem using transactional remote reads with MessageQueueTransaction and the an...

Spring.NET DistributedTxMessageListenerContainer doesn't receive messages

I'm trying to use DistributedTxMessageListenerContainer to receive messages from a queue but without any success. If I replace the DistributedTxMessageListenerContainer by a TransactionalMessageListenerContainer I do receive messages. What am I doing wrong here? Configuration: <!-- MSMQ Configuration --> <object id='ExamSessionAccessCo...

error on sending the mail message to message queue.

Hi, I am trying to send the message(complex type) to the message queue.I am getting the error,ETravel.Web, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.below lies the code for that. public void QueueMessage(EmailMessage message) { Message msg = new Message(); msg....

WCF MSMQ Service unable to detect that a queue is transactional

I have created an service oriented application using wcf and msmq. We can only use server 2003, so the version of msmq is 3.0. The service works, but when using the Microsoft Service Trace Viewer. I keep getting warning when opening service hosts about wcf not being able to confirm wether the queue is transactional. Here is the Trace :...