msmq

MSMQ vs Temporary Table Dump

怎甘沉沦 提交于 2019-12-03 07:34:18
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 also feeds several desktop applications and a website. In order to reduce the amount of time for the

How to research unmanaged memory leaks in .NET?

两盒软妹~` 提交于 2019-12-03 06:40:39
问题 I have a WCF service running over MSMQ. Memory gradually increases over time, indicating that there is some sort of memory leak. I ran the service locally and monitored some counters using PerfMon. Total CLR memory managed heap bytes remains relatively constant, while the process' private bytes increases over time. This leads me to believe that there is some sort of unmanaged memory leak. Assuming that unmanaged memory leak is the issue, how do I address the issue? Are there any tools I could

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

人盡茶涼 提交于 2019-12-03 06:22:26
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 an existing MSMQ queue and responds to the new message by doing something simple like writing the

How to process MSMQ messages in parallel

空扰寡人 提交于 2019-12-03 05:51:15
问题 I'm writing a windows service to consume MSMQ messages. The service will have periods of high activity (80k messages coming in very quickly) and long periods of inactivity (could be several days without a new message). Processing the messages is very network-bound, so I get a big benefit out of parallelism. But during periods of inactivity, I don't want to tie up a bunch of threads waiting for messages that aren't coming anytime soon. The MSMQ interface seems to be very focused on a

WCF in IIS, using MSMQ in workgroup mode

血红的双手。 提交于 2019-12-03 05:51:07
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 Main(string[] args) { var client = new MsmqServiceReference.MsmqContractClient(); client.SendMessage("TEST"); client.Close(); Console.ReadKey(); } Where MsmqContractClient is a proxy generated by visual studio when I add a service reference. The endpoint in the app.config is pointing to a msmqueue: <client> <endpoint address="net.msmq://localhost/private

No permission to access a private MSMQ

北城余情 提交于 2019-12-03 04:50:41
问题 On an XP machine there is a private messagequeue that was created by a .net service. When I want to access this private queue in a VB6 application I keep getting an "Access is denied" error. So it seems this is a security issue, only I don't understand why even when I am logged on as an administrator I still can't have access to queue that was created on the same machine. Is there something else I have to take into account. Sample on how I use the queue in VB6 Public msgQueue As MSMQQueue

Message does not reach MSMQ when made transactional

泄露秘密 提交于 2019-12-03 03:11:21
I have a private MSMQ created in my local machine. I am sending messages to the queue using following C# code. When I changed the queue to be transactional, the message is not reaching the MSMQ. However, there is no exception thrown in the Send method. What change I need to make in order to make it working? using System; using System.Messaging; using System.Data; public partial class _Default : System.Web.UI.Page { //Sharing violation resulted from queue being open already for exclusive receive. MessageQueue helpRequestQueue = new MessageQueue(@".\Private$\MyPrivateQueue", false); protected

How to Purge an MSMQ Outgoing Queue

匿名 (未验证) 提交于 2019-12-03 03:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Is there any way to purge an outgoing queue. It doesn't appear that I can do it with the MMC snap-in and when i try to purge it in code i get an error Format name is invalid the computer it's sending the messages to does not exist, so they will never be sent, however the queues filled up the max storage space for MSMQ so everytime my application tries to send another message i get the insufficient resources exception. I've tried the following formats and they all fail with the exception format name is invalid DIRECT=OS:COMPUTER

MSMQ Issue reading remote private queues (again)

a 夏天 提交于 2019-12-03 03:07:37
Ok my issue is similar to How to receive message from a private workgroup queue (and I am basically using the same code). I am creating the queue on the host machine using MessageQueue.Create(@".\Private$\MyNewPrivateQueue"); Opening the queue on the remote machine with var queue = new MessageQueue(@"FormatName:DIRECT=TCP:xxx.xxx.xxx.xxx\PRIVATE$\MyNewPrivateQueue"); And writing/reading data using queue.send() and queue.Receive() I have two systems that I am experimenting with. Windows 7 Home Premium x64 Windows XP SP3 When I create the private queue on the W7 system and try to write then read

Access to Message Queuing system is denied

匿名 (未验证) 提交于 2019-12-03 03:04:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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 probably under the IIS_IUSRS account. 回答2: If you