msmq

Setting MSMQ permissions for a private queue created by a different user

老子叫甜甜 提交于 2019-11-30 22:28:31
问题 The person who was previously using my PC at work set up a private MSMQ that I need to access. They have since left the bank but the permissions remain and I can't access the queue or give myself edit permission to remove the restriction. I am an admin on this machine now so I'm assuming there's some way for me to change things..Been searching high and low but most of what I find is related to doing things through scripts. Any help appreciated, thanks 回答1: Right click on Your Queue ->

Service not receiving messages after Message Queuing service restarted

孤人 提交于 2019-11-30 19:43:03
We have a service that receives messages from n message queues. However, if the Message Queuing service is restarted, the message retrieval service stops receiving messages even after the Message Queuing service has restarted successfully. I have tried to specifically catch the MessageQueueException that is thrown in the message retrieval service and invoke the queue's BeginReceive method again. However, in the 2 seconds or so that it takes the Message Queuing service to restart, I get about 1875 instances of the exception and then the service stops functioning when another

Await async with event handler

痞子三分冷 提交于 2019-11-30 18:34:00
问题 I am confused as to how best handle this situation. I wan't to await the response of an asynchronous call. Specifically I have: public async Task<IApiData> FetchQueuedApiAsync(TimeSpan receiveTimeout) { var message = await Task.Factory.FromAsync<Message>( ReadQueue.BeginReceive(receiveTimeout), ReadQueue.EndReceive); return message.Body as IApiData; } This works as expected. However, if the timeout expires then ReadQueue.EndReceive must not be called else it will throw an exception. Obviously

The queue does not exist or you do not have sufficient permissions to perform the operation. exception while sending message via MSMQ

别等时光非礼了梦想. 提交于 2019-11-30 17:34:02
问题 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 (!MessageQueue.Exists(".\\Private$\\" + chessQueue.QueueName)) { queue = new MessageQueue(".\\Private$\\chessqueue"); chessQueue.Messages = new List<MessageObject>(); chessQueue.Messages.Add(chessQueue.Message); queue.Formatter = new BinaryMessageFormatter(); m = new Message(); m

Service not receiving messages after Message Queuing service restarted

*爱你&永不变心* 提交于 2019-11-30 16:55:52
问题 We have a service that receives messages from n message queues. However, if the Message Queuing service is restarted, the message retrieval service stops receiving messages even after the Message Queuing service has restarted successfully. I have tried to specifically catch the MessageQueueException that is thrown in the message retrieval service and invoke the queue's BeginReceive method again. However, in the 2 seconds or so that it takes the Message Queuing service to restart, I get about

Access to Message Queuing system is denied

依然范特西╮ 提交于 2019-11-30 16:23:33
问题 I am trying to access queue message from my host, while trying to get message i am getting "Access to Message Queuing system is denied." message. Don't know how to solve this issue. I am using Windows 7 as client system and server is Windows 2008 R2 Server 回答1: I ran into the same issue trying to write to the MSMQ through ASP.NET (Windows 7). I added "Receive Message" "Peek Message" and "Send Message" permissions and it works correctly now. If you're running this through ASP.NET, then you're

MSMQ - Cannot receive from Multicast queues

白昼怎懂夜的黑 提交于 2019-11-30 15:25:14
问题 I am trying to get my head around how multicasting works in MSMQ but I cannot receive messages at all, even from the same machine. I'm obviously doing something wrong but cannot see what. Here's where I'm at: I manually created a non-transactional private queue called MulticastTest and then set the Multicast address to 234.1.1.1:8001 . Then my test sending app does this: MessageQueue queue = new MessageQueue("FormatName:MULTICAST=234.1.1.1:8001"); queue.Send("Hello World"); This works, it at

Using MSMQ over HTTP. How to address the queue?

本小妞迷上赌 提交于 2019-11-30 14:22:26
I'm currently trying to use MSMQ with C# and .NET in order to achieve IPC. I am trying to understand how it works, and I'm quite confused about the differences between Path name and Format name when accessing MSMQ queues . I've found some similar issues in the following posts: MSMQ calls over HTTP not reaching destination queue How to setup MSMQ server so that it can be accessed over the Internet How to use MSMQ over http through the respective WCF binding? However, they're all using MSMQ and WCF, and I don't want to use WCF for now. What I want to achieve is the following: Client: Sends data

MSMQ - Cannot receive from Multicast queues

岁酱吖の 提交于 2019-11-30 13:59:51
I am trying to get my head around how multicasting works in MSMQ but I cannot receive messages at all, even from the same machine. I'm obviously doing something wrong but cannot see what. Here's where I'm at: I manually created a non-transactional private queue called MulticastTest and then set the Multicast address to 234.1.1.1:8001 . Then my test sending app does this: MessageQueue queue = new MessageQueue("FormatName:MULTICAST=234.1.1.1:8001"); queue.Send("Hello World"); This works, it at least seems to send the message which I see in an outgoing queue on the same machine. At least I assume

Using multicast queues in System.Messaging and MSMQ 3.0

末鹿安然 提交于 2019-11-30 13:57:08
I am trying to use MessageQueues to notify users of an application of data changes using the Multicast feature, but can't get it to work : the workstation that sends the message does receive it, but none of the other running workstations seem to catch the sent message. Sending messages is done as follows : Dim sendQueue As New Messaging.MessageQueue("FormatName:MULTICAST=234.1.1.1:8001") Dim message As New Messaging.Message("message body...") sendQueue.Send(message) And receiving them : Dim receiveQueue As New Messaging.MessageQueue(".\private$\myQ") receiveQueue.MulticastAddress = "234.1.1.1