I ran across am unexpected behavior of MSMQ (XP/2003, .NET 2.0), when queue name longer that some limit does not work.
I fount this: http://msdn.microsoft.com/en-us/library/ms706083(v=VS.85).aspx, which states that maximum is 124.
My working queues are ~70 characters long; working with no issues.
If queue name length is 108 characters I get the following:
1. Attempt to open queue results in The queue does not exist or you do not have sufficient permissions to perform the operation.
2. Attempt to create queue results in Format name buffer supplied to the API was too small to fit the format name.
3. In both cases above exception is thrown by the same method: System.Messaging.MessageQueue.ResolveFormatNameFromQueuePath
4. Queue is in fact created with full non-truncated name.
So what's the name limit for private queue name?
Does this limit include machine name? My queue names (which I count characters in) look like .\Private$\ABCDEF...
View Complete Post