msmq

Permissions error accessing MSMQ from ASP .Net Web Service

Deadly 提交于 2019-12-05 02:53:06
问题 I have written a web service that reads from a message queue . This works fine under Cassini. Now that I have deployed the service under IIS, I receive an error message when the service tries to access the queue: The queue does not exist or you do not have sufficient permissions to perform the operation. I have set the anonymous access user on the IIS virtual directory to be my own domain account, which is a member of the administrators group on the local machine. I have granted this same

CPU underutilized. Due to blocking I/O?

我们两清 提交于 2019-12-05 01:01:45
I am trying to find where lies the bottleneck of a C# server application which underutilize CPU. I think this may be due to poor disk I/O performance and has nothing to do with the application itself but I am having trouble making a fact out of this supposition. The application reads messages from a local MSMQ queue, does some processing on each messages and after processing the messages, sends out response messages to another local MSMQ queue. I am using an async loop to read messages from queue, dequeuing them as fast as possible and dispatching them for processing using Task.Run to launch

MSMQ Receive() method timeout

可紊 提交于 2019-12-05 00:30:04
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 this: queue.Receive(TimeSpan.FromSeconds(10), MessageQueueTransactionType.Automatic); Which is using the Messaging.MessageQueue.Receive function and queue is a MessageQueue. The problem is as follows. The above line of code will be called with the specified timeout (10 seconds). The Receive(...) function is a blocking function, and is supposed to block until a

How do I send/receive multicast messages using MSMQ?

泪湿孤枕 提交于 2019-12-04 17:59:49
Can someone please help me find some sample code to SEND and RECEIVE Multicast messages using MSMQ using any .NET language of your choice. I have searched around and kind of see the send being: MessaegQueue topic = new MessageQueue("formatname:multicast=234.1.1.1:8081") topic.Send("Hello out there") I tried to do the same idea with Receive: MessageQueue topic = new MessageQueue("formatname:multicast=234.1.1.1:8081") topic.Receive(); but I get nothing. Can anyone show some sample code on how to receive multicast messages? or am I sending them wrong? So I figured it out. To send a multicast

Service Bus 1.0 for Windows Server Transaction/Error Handling

假如想象 提交于 2019-12-04 17:13:42
I'm sure I'm not the first to say it, but there's a severe lack of documentation on the finer points of Service Bus 1.0 for Windows Server out there... I'm hoping some of the MS insiders can help clear a few things up... Do services utilizing queues/topics run in an implicit, ambient transaction? For instance consider the following code snippet: [ServiceBehavior] public class MySbService : IDoWork { [OperationBehavior] void DoSomeWork(WorkRequest request) { DoDatabaseWork(); DoMoreDatabaseWork(); } } In the above sample, without creating an explicit TransactionScope , would DoDatabaseWork() be

MSMQ vs Temporary Table Dump

帅比萌擦擦* 提交于 2019-12-04 12:01:20
问题 I know this question has been asked a bit before. But looking around I still cant make my mind up which route I should go down. Here's my scenario, hopefully you can help out: We will have a series of web services that will be hit on a scheduled basis by hundreds of mobile applications. These services will data on the device with new information both going to the devices and coming back from them. The data returned from the devices will need to update a single central SQL server database that

Swapping out MSMQ for RabbitMQ in NServiceBus

主宰稳场 提交于 2019-12-04 10:52:18
问题 Udi mentions here that "people have swapped out the MSMQ layer of NServiceBus and plugged in RabbitMQ in its place". I'm looking to do the same thing with the end goal of being able to run an app built with NServiceBus on Mono/Linux with AMQP. Before diving in though I'd like to get some feedback from people who might have done this already about pitfalls to avoid, red herrings etc. Alternatively if the approach is a massive undertaking, it might be best to just use RabbitMQ directly, but if

MassTransit 2.6.1 Request/Response pattern - Response times out

折月煮酒 提交于 2019-12-04 10:45:59
I'm looking at MassTransit as a ServiceBus implementation to use in a web project. I am playing with the Request/Response pattern and am seeing a long delay between the consumer receiving the message and responding, and the request publisher handling the response; sometimes, it seems like the response is never going to come through (having left it running for 10 minutes, the response has still not come through). the only times that I have seen the handle delegate get called with the response is after a 30 second timeout period and the timeout exception being thrown; in this situation, the

How to Create a C# Listener Service for MSMQ as a Windows Service

筅森魡賤 提交于 2019-12-04 10:26:10
问题 I'll start by saying I'm not a .NET developer, but have been thrown into a project where I need to use MSMQ so a classic ASP web application can send messages to a C# Windows Service that handles the processing. I have experience integrating other message queues with other languages, but like I mentioned, I don't have much experience with .NET and Windows development so some guidance would be much appreciated. Here are my questions... Could someone provide some basic C# code that listens to

Creating a private MSMQ queue in a Microsoft Cluster via a script

前提是你 提交于 2019-12-04 10:01:15
We are migrating to Windows 2008 R2 Standard and will be using a Microsoft Clustering (active-passive) configuration. Our application is heavily dependent on MSMQ private queues and our install creates well over 100 private queues using the following C# code. MessageQueue.Create(".\private$\myqueue", false); Since the install is not running inside the context of the cluster, the queues are created on the local node and not in the cluster. We then tried changing the code to: MessageQueue.Create("MYCLUSTERNAME\private$\myqueue", false); However, you can't create private queues on a different