msmq

MSMQ WMI Query Failing Due to Missing Performance Counters

萝らか妹 提交于 2020-01-04 02:34:11
问题 When trying to execute the following query from powershell: Get-WmiObject -query "Select * from Win32_PerfRawData_MSMQ_MSMQQueue" I receive the error: Get-WmiObject : Invalid query At line:1 char:14 + Get-WmiObject <<<< -query "Select * from Win32_PerfRawData_MSMQ_MSMQQueue" + CategoryInfo : InvalidOperation: (:) [Get-WmiObject], ManagementException + FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand I have diagnosed this to the performance

MessageQueueException (0x80004005): Access to Message Queuing system is denied

扶醉桌前 提交于 2020-01-03 08:45:24
问题 I have an exsiting application that works fine on a windows 2003 server. I having been moving it to windows 2008r2 and when the application trys to access the queue it gets the below error? The Indentity user of my app pool has full control of my message queue. Does anyone have any ideas on how to fix this. I believe this to be server config issue. [MessageQueueException (0x80004005): Access to Message Queuing system is denied.] System.Messaging.MQCacheableInfo.get_ReadHandle() +221 System

MSMQ not invoking COM

天大地大妈咪最大 提交于 2020-01-03 03:07:31
问题 I made a COM object with c# and let VS register it for me. I can see it in registry and if I make a test app I can add a reference to it and it works as expected with all the methods available and functional. Now If I try and use it in a MSMQ rule nothing happens. It will not be invoked. Is this because it is a .NET assembly? Is it because I do not have VS Pro? Do you have any idea at all? 回答1: You haven't by any chance registered your component on a mapped network drive have you? MSMQ runs

MSMQ messages disappear when they get to remote server

萝らか妹 提交于 2020-01-02 16:54:06
问题 I have to create a MSMQ messaging mechanism between two servers in the same domain, SenderServer (MS Server 2012) and ReceiverServer (MS Server 2008 R2). I created a private, transactional queue in ReceiverServer .\private$\receiver , I gave receive (and peek) message rights to system and administrators. I then created a client application that creates and forwards messages to the queue by using the following code: MessageQueue queue = new queue("FormatName:Direct=OS:ReceiverServer\private$

Is MSMQ thread safe?

天涯浪子 提交于 2020-01-01 09:32:37
问题 I have multiple processes monitoring an MSMQ queue. I want to do multi-step operations like first peek the message and then based on some criteria receive the message. A single message may pass the receiving criteria of multiple processes so that more than one process may try to receive the same message. Will these operations be thread safe? If not what should I do to prevent one process from failing to receive the message that other process has already received? 回答1: The operations

Writing to a remote MSMQ

試著忘記壹切 提交于 2019-12-31 08:11:52
问题 Okay, here is a very simple and fundamental question. If I have an application on windows machine A that wants to write to a queue on windows machine B, do I need to have MSMQ installed on machine A (even though there is no queue there)? I am just beginning to use queues for my applications and trying to figure some fundamentals out. Thanks 回答1: Yes, you need MSMQ installed locally to write to a remote queue. If you're writing to a private queue, take a look at this page which has useful

Writing to a remote MSMQ

 ̄綄美尐妖づ 提交于 2019-12-31 08:10:27
问题 Okay, here is a very simple and fundamental question. If I have an application on windows machine A that wants to write to a queue on windows machine B, do I need to have MSMQ installed on machine A (even though there is no queue there)? I am just beginning to use queues for my applications and trying to figure some fundamentals out. Thanks 回答1: Yes, you need MSMQ installed locally to write to a remote queue. If you're writing to a private queue, take a look at this page which has useful

Set-MsmqQueueACL - Allow - can't use list as per docs?

痴心易碎 提交于 2019-12-30 09:50:14
问题 I'm trying to set ACL on a Msmq Queue using Powershell v5.1 (Win2k16) - but even though I'm following the documentation - I keep getting an error. Get-MsmqQueue -Name "s009_ClientsServiceBus" -QueueType Private | Set-MsmqQueueAcl -UserName "domain.com\WfxServiceBus" -Allow Peek,Write Error: Set-MsmqQueueACL : Cannot convert 'System.Object[]' to the type 'System.Nullable`1[Microsoft.Msmq.PowerShell.Commands.MessageQueueAccessRights]' required by parameter 'Allow'. Specified method is not

How to enforce message queue sequence with multiple WCF service instances

会有一股神秘感。 提交于 2019-12-30 04:47:07
问题 I want to create a WCF service which uses an MSMQ binding as I have a high volume of notifications the service is to process. It is important that clients are not held up by the service and that the notifications are processed in the order they are raised, hence the queue implementation. Another consideration is resilience. I know I could cluster MSMQ itself to make the queue more robust, but I want to be able to run an instance of my service on different servers, so if a server crashes

Purge MSMQ queue and reset IIS from a bat file

我们两清 提交于 2019-12-30 04:33:10
问题 Is it possible to purge a msmq queue from a bat file? Essentially I want to make a bat file or at least something quick and easy so that an untrained employee can click and fix without knowing any shell or admin tools Could someone please help me in the right direction? 回答1: Take a look on MSMQAdm Utility Tasks administered through the utility programs include the following: Browsing local queues Purging messages Deleting individual messages Stopping and starting MSMQ service Connecting and