MSMQ : The Queue Does not Exist or you do not have sufficient permissions to perform the Operation<p align=left><font face=Arial size=2>Dear All,</font></p> <p align=left> </p> <p align=left>I am working on a mobile application where iam sending data from the Windows Mobile Device to the Server using MSMQ.  </p> <p align=left> </p> <p align=left>earlier i was using a Static IP server and sending the Queue using the following Code:</p><font color="#008000" size=2> <p>MessageQueue DepositQueue = new MessageQueue(String.Format(System.Globalization.CultureInfo.InvariantCulture,</p></font><font size=2> <p></font><font color="#008000" size=2> @&quot;FORMATNAME<img alt="Big Smile" src="http://forums.microsoft.com/MSDN/emoticons/emotion-2.gif">IRECT=TCP:{0}\private$\DepositQueue&quot;, &quot;xxx.xxx.xxx.xxx&quot;));</font></p> <p align=left><font color="#008000"></font> </p> <p align=left><font color="#000000">The Data was getting transferred without any issues.</font></p> <p align=left><font color="#008000"></font> </p> <p align=left><font color="#008000" size=2><font color="#000000">Now i have shifted my server to a hosting server and changed the Queue as following:</font></font></p><font color="#008000" size=2><font size=2> <p></font><font color="#008080" size=2>MessageQueue</font><font size=2> DepositQueue = </font><font color="#0000ff" size=2>new</font><font size=2> </font><font color="#008080" size=2>MessageQueue</font><font size=2>();</p> <p></font><font color="#0000ff" size=2>string</font><font size=2> path = </font><font color="#800000" size=2>@&quot;FormatName<img alt="Big Smile" src="http://forums.microsoft.com/MSDN/emoticons/emotion-2.gif">IRECT=HTTP://www.myserver.com\MSMQ\DepositQueue&quot;</font><font size=2>;</p> <p>DepositQueue.Path = path;</p> <p> </p> <p align=left><font color="#000000">But now am getting a error as </font><font color="#ff0000"><strong>&quot;The Queue Does not Exist or you do not have sufficient permissions to perform the Operation&quot;.</strong></font></p> <p align=left><strong><font color="#000000"></font></strong> </p> <p align=left><font color="#000000">I have provided the Permission to the Queue in the server adding the IWAM and IUSER Accounts to the user group of the Queue. I also changed the path as &quot;Direct=http://www.myserver.com\MSMQ\DepositQueue&quot;.  but the error remains there.</font></p> <p align=left><font color="#000000"></font> </p> <p align=left><font color="#000000">I would like to know whether any other additional provision has to be provided out here.. pl. let me know</font></p> <p align=left><font color="#000000"></font> </p> <p align=left><font color="#000000">Enviornment:</font></p> <p align=left><font color="#000000">Mobile : WIndows Mobile 5</font></p> <p align=left><font color="#000000">Server : Windows 2003 Enterprise Server(64 bit) , IIS 6.0</font></p> <p align=left><font color="#000000"></font> </p> <p align=left><font color="#000000">Thanks in advance</font></p> <p align=left><font color="#000000">Regards</font></p> <p align=left><font color="#000000">Biju S Melayil</font></font></font></p>© 2009 Microsoft Corporation. All rights reserved.Thu, 11 Dec 2008 23:09:17 Zd6d4b726-6798-4ff3-a800-9807aa1717c8http://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesvbcs/thread/d6d4b726-6798-4ff3-a800-9807aa1717c8#d6d4b726-6798-4ff3-a800-9807aa1717c8http://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesvbcs/thread/d6d4b726-6798-4ff3-a800-9807aa1717c8#d6d4b726-6798-4ff3-a800-9807aa1717c8Biju S Melayilhttp://social.msdn.microsoft.com/Profile/en-US/?user=Biju%20S%20MelayilMSMQ : The Queue Does not Exist or you do not have sufficient permissions to perform the Operation<p align=left><font face=Arial size=2>Dear All,</font></p> <p align=left> </p> <p align=left>I am working on a mobile application where iam sending data from the Windows Mobile Device to the Server using MSMQ.  </p> <p align=left> </p> <p align=left>earlier i was using a Static IP server and sending the Queue using the following Code:</p><font color="#008000" size=2> <p>MessageQueue DepositQueue = new MessageQueue(String.Format(System.Globalization.CultureInfo.InvariantCulture,</p></font><font size=2> <p></font><font color="#008000" size=2> @&quot;FORMATNAME<img alt="Big Smile" src="http://forums.microsoft.com/MSDN/emoticons/emotion-2.gif">IRECT=TCP:{0}\private$\DepositQueue&quot;, &quot;xxx.xxx.xxx.xxx&quot;));</font></p> <p align=left><font color="#008000"></font> </p> <p align=left><font color="#000000">The Data was getting transferred without any issues.</font></p> <p align=left><font color="#008000"></font> </p> <p align=left><font color="#008000" size=2><font color="#000000">Now i have shifted my server to a hosting server and changed the Queue as following:</font></font></p><font color="#008000" size=2><font size=2> <p></font><font color="#008080" size=2>MessageQueue</font><font size=2> DepositQueue = </font><font color="#0000ff" size=2>new</font><font size=2> </font><font color="#008080" size=2>MessageQueue</font><font size=2>();</p> <p></font><font color="#0000ff" size=2>string</font><font size=2> path = </font><font color="#800000" size=2>@&quot;FormatName<img alt="Big Smile" src="http://forums.microsoft.com/MSDN/emoticons/emotion-2.gif">IRECT=HTTP://www.myserver.com\MSMQ\DepositQueue&quot;</font><font size=2>;</p> <p>DepositQueue.Path = path;</p> <p> </p> <p align=left><font color="#000000">But now am getting a error as </font><font color="#ff0000"><strong>&quot;The Queue Does not Exist or you do not have sufficient permissions to perform the Operation&quot;.</strong></font></p> <p align=left><strong><font color="#000000"></font></strong> </p> <p align=left><font color="#000000">I have provided the Permission to the Queue in the server adding the IWAM and IUSER Accounts to the user group of the Queue. I also changed the path as &quot;Direct=http://www.myserver.com\MSMQ\DepositQueue&quot;.  but the error remains there.</font></p> <p align=left><font color="#000000"></font> </p> <p align=left><font color="#000000">I would like to know whether any other additional provision has to be provided out here.. pl. let me know</font></p> <p align=left><font color="#000000"></font> </p> <p align=left><font color="#000000">Enviornment:</font></p> <p align=left><font color="#000000">Mobile : WIndows Mobile 5</font></p> <p align=left><font color="#000000">Server : Windows 2003 Enterprise Server(64 bit) , IIS 6.0</font></p> <p align=left><font color="#000000"></font> </p> <p align=left><font color="#000000">Thanks in advance</font></p> <p align=left><font color="#000000">Regards</font></p> <p align=left><font color="#000000">Biju S Melayil</font></font></font></p>Thu, 20 Dec 2007 07:01:54 Z2007-12-26T07:02:38Zhttp://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesvbcs/thread/d6d4b726-6798-4ff3-a800-9807aa1717c8#b8b55d94-3026-4218-8bc9-425871b68279http://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesvbcs/thread/d6d4b726-6798-4ff3-a800-9807aa1717c8#b8b55d94-3026-4218-8bc9-425871b68279Ilya Tumanovhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ilya%20TumanovMSMQ : The Queue Does not Exist or you do not have sufficient permissions to perform the Operation<p><span style="font-size:10pt;font-family:'Arial','sans-serif'">Your format name appears to be wrong. Correct one must use same ending as before including &quot;private$&quot;, see <a title="http://msdn2.microsoft.com/en-us/library/ms881917.aspx" href="http://msdn2.microsoft.com/en-us/library/ms881917.aspx">this</a>. Also make sure you have SRMP support configured on device or it would refuse all messages in SRMP format.</span></p><font face=Arial size=2></font>Thu, 20 Dec 2007 07:53:47 Z2007-12-20T07:53:47Zhttp://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesvbcs/thread/d6d4b726-6798-4ff3-a800-9807aa1717c8#b991fc4f-3053-45b8-89ed-f32bf75ff400http://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesvbcs/thread/d6d4b726-6798-4ff3-a800-9807aa1717c8#b991fc4f-3053-45b8-89ed-f32bf75ff400Biju S Melayilhttp://social.msdn.microsoft.com/Profile/en-US/?user=Biju%20S%20MelayilMSMQ : The Queue Does not Exist or you do not have sufficient permissions to perform the Operation<p align=left><font face=Arial size=2></font> </p> <p>Dear IIlya,</p> <p align=left> </p> <p align=left>Thanks for the Response.</p> <p align=left> </p> <p align=left>I changed the Code as per your Specifications and now it looks like this:</p><font size=2> <p></font><font color="#008080" size=2>MessageQueue</font><font size=2> DepositQueue = </font><font color="#0000ff" size=2>new</font><font size=2> </font><font color="#008080" size=2>MessageQueue</font><font size=2>();</p> <p></font><font color="#0000ff" size=2>string</font><font size=2> path = </font><font color="#800000" size=2>@&quot;DIRECT=HTTP://www.myServer.com/MSMQ/private$/DepositQueue&quot;</font><font size=2>;</p> <p>DepositQueue.Path = path;</p> <p> </p> <p align=left>But now am getting Error as : <strong><font color="#ff0000">PATH SYNTAX IS INVALID.</font></strong></p> <p align=left> </p> <p align=left>Where and how should i Check SRMP support configured on device.</p> <p align=left>Pl. let me know</p> <p align=left><br>Thanks.</p> <p align=left>Regards</p> <p align=left>Biju S Melayil</font></p>Thu, 20 Dec 2007 09:57:38 Z2007-12-20T09:57:38Zhttp://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesvbcs/thread/d6d4b726-6798-4ff3-a800-9807aa1717c8#30922948-2145-4ec2-a572-56ab5db09661http://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesvbcs/thread/d6d4b726-6798-4ff3-a800-9807aa1717c8#30922948-2145-4ec2-a572-56ab5db09661Ilya Tumanovhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ilya%20TumanovMSMQ : The Queue Does not Exist or you do not have sufficient permissions to perform the Operation<p align=left>How about this:</p> <p align=left> </p> <p align=left><font color="#800000">@&quot;FormatName<img alt="Big Smile" src="http://forums.microsoft.com/MSDN/emoticons/emotion-2.gif">IRECT=HTTP://www.myServer.com/MSMQ/private$/DepositQueue&quot;</font></p> <p align=left><font color="#800000"></font> </p> <p align=left><font color="#800000">You can check registry (see same link for MSMQ registry description) to see if SRMP is enabled or not.</font></p> <p align=left><font color="#800000"></font> </p> <p align=left><font color="#800000">Also see <a title="http://blogs.msdn.com/ihimmar/archive/2004/06/14/154909.aspx" href="http://blogs.msdn.com/ihimmar/archive/2004/06/14/154909.aspx">this</a>.</font></p>Fri, 21 Dec 2007 23:28:16 Z2007-12-26T07:02:38Zhttp://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesvbcs/thread/d6d4b726-6798-4ff3-a800-9807aa1717c8#d4a59563-4260-432c-b323-c47a291c1f63http://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesvbcs/thread/d6d4b726-6798-4ff3-a800-9807aa1717c8#d4a59563-4260-432c-b323-c47a291c1f63Biju S Melayilhttp://social.msdn.microsoft.com/Profile/en-US/?user=Biju%20S%20MelayilMSMQ : The Queue Does not Exist or you do not have sufficient permissions to perform the Operation<p align=left><font face=Arial size=2></font> </p> <p>Hi Ilaya,</p> <p align=left> </p> <p align=left>Thanks for the response.</p> <p align=left>The Code has been changed as follows:</p><font color="#008080" size=2> <p>MessageQueue</font><font size=2> DepositQueue = </font><font color="#0000ff" size=2>new</font><font size=2> </font><font color="#008080" size=2>MessageQueue</font><font size=2>();</p> <p></font><font color="#0000ff" size=2>string</font><font size=2> path = </font><font color="#800000" size=2>@&quot;FormatName<img height=19 alt="Big Smile" src="http://forums.microsoft.com/MSDN/emoticons/emotion-2.gif" width=19>IRECT=HTTP://www.myserver.com/MSMQ/private$/DepositQueue&quot;</font><font size=2>;</p> <p>DepositQueue.Path = path;</p> <p> </p> <p align=left>Plus, i Have changed the Registry key settings as follows:</p><font size=2> <p></font><font color="#0000ff" size=2>string</font><font size=2> keyName = </font><font color="#800000" size=2>@&quot;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\SimpleClient&quot;</font><font size=2>;</p></font><font size=2> <p></font><font color="#008080" size=2>Registry</font><font size=2>.SetValue(keyName, </font><font color="#800000" size=2>&quot;SrmpEnabled&quot;</font><font size=2>,</font><font color="#800000" size=2>&quot;Yes&quot;</font><font size=2>);</p> <p></font><font color="#008080" size=2>Registry</font><font size=2>.SetValue(keyName, </font><font color="#800000" size=2>&quot;BinaryEnabled&quot;</font><font size=2>, </font><font color="#800000" size=2>&quot;No&quot;</font><font size=2>);</p> <p> </p> <p align=left>Now am not getting error on the device side, but the Message is not seen in my MSMQ Private Queue. When i send a Message from the device to the server am getting a new Outgoing Queue created in the MSMQ Service with the same Queue Name (<font color="#800000">HTTP://www.myserver.com/MSMQ/private$/DepositQueue&quot;)</font></p> <p align=left><font color="#800000"></font> </p> <p align=left>Is there anything which i have Missed???</p> <p align=left>I haven't opened the application which receives this message and saves it to the datbase.</p> <p align=left> </p> <p align=left>So Pl. let me know if i did something wrong out here.</p> <p align=left> </p> <p align=left>Merry Xmas</p> <p align=left>Cheers</p> <p align=left>Biju S Melayil</font></font></p>Wed, 26 Dec 2007 11:09:29 Z2007-12-26T11:09:29Zhttp://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesvbcs/thread/d6d4b726-6798-4ff3-a800-9807aa1717c8#cbb8d38a-5bb6-40f1-9697-44b85ebaa6bfhttp://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesvbcs/thread/d6d4b726-6798-4ff3-a800-9807aa1717c8#cbb8d38a-5bb6-40f1-9697-44b85ebaa6bfIlya Tumanovhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ilya%20TumanovMSMQ : The Queue Does not Exist or you do not have sufficient permissions to perform the Operation<span style="font-size:10pt;line-height:115%;font-family:'Arial','sans-serif'"> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:10pt;line-height:115%;font-family:'Arial','sans-serif'">That means message cannot be delivered, probably due to networking issues (server is not accessible, needs authorization, improperly configured proxy/firewall and so on). </span><span style="font-size:10pt;line-height:115%;font-family:'Arial','sans-serif'">I would suggest typing server URL in pocket IE on device. If it can’t be reached then you have networking issues to fix.</span></p> <p class=MsoNormal style="margin:0in 0in 10pt"></span></p> <p align=left><font face=Arial size=2></font> </p>Wed, 26 Dec 2007 20:45:25 Z2007-12-26T20:45:25Zhttp://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesvbcs/thread/d6d4b726-6798-4ff3-a800-9807aa1717c8#615125e6-760c-4087-8969-d3c5ac96d4c9http://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesvbcs/thread/d6d4b726-6798-4ff3-a800-9807aa1717c8#615125e6-760c-4087-8969-d3c5ac96d4c9Biju S Melayilhttp://social.msdn.microsoft.com/Profile/en-US/?user=Biju%20S%20MelayilMSMQ : The Queue Does not Exist or you do not have sufficient permissions to perform the Operation<p align=left><font face=Arial size=2></font> </p> <p>Hi Ilaya,</p> <p align=left> </p> <p align=left>I tried the URL from the device and its able to browse the site from the Pocket PC.</p> <p align=left>I have a small doubt which i would like to clarify with you.</p> <p align=left> </p> <p align=left>Whenever i send a Message through this queue i don't find any Message in that Deposit Queue in the server. But in the outgoing queue i find a new queue being created which look like this.</p><font color="#800000" size=2> <p>DIRECT=HTTP://myserver.com/MSMQ/private$/DepositQueue</p> <p align=left> </p> <p align=left><font color="#000000">Does this means my message is getting delivered in to the Message Queue? </font></p> <p align=left><font color="#000000">I havent opened my deskop application which receives this message saves to the databse, which means this message should be displayed in the private queue.</font></p> <p align=left><font color="#000000">Can u clarify this point?</font></p> <p align=left><font color="#000000"></font> </p> <p align=left><font color="#000000">I checked the Security and the Firewall of the Server and in that it should the Windows Services which are allowed and Running including MSMQ Services.</font></p> <p align=left><font color="#000000"></font> </p> <p align=left><font color="#000000"></font> </p> <p align=left><font color="#000000">Thanks</font></p> <p align=left><font color="#000000">Regards</font></p> <p align=left><font color="#000000">Biju S Melayil</font></p> <p align=left> </p></font> <p align=left> </p> <p align=left> </p> <p align=left> </p>Fri, 28 Dec 2007 15:17:53 Z2007-12-28T15:17:53Zhttp://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesvbcs/thread/d6d4b726-6798-4ff3-a800-9807aa1717c8#3b06f40a-5ae6-45b3-8166-5318bbb37f98http://social.msdn.microsoft.com/Forums/en-US/vssmartdevicesvbcs/thread/d6d4b726-6798-4ff3-a800-9807aa1717c8#3b06f40a-5ae6-45b3-8166-5318bbb37f98Ilya Tumanovhttp://social.msdn.microsoft.com/Profile/en-US/?user=Ilya%20TumanovMSMQ : The Queue Does not Exist or you do not have sufficient permissions to perform the Operation<p align=left><span style="font-size:10pt;line-height:115%;font-family:'Arial','sans-serif'">MSMQ works similar to how USPS works. </span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:10pt;line-height:115%;font-family:'Arial','sans-serif'"></span> </p> <p class=MsoNormal style="margin:0in 0in 10pt" align=left><span style="font-size:10pt;line-height:115%;font-family:'Arial','sans-serif'">You write your letter, write in address (queue format name), attach stamp and put it into your mail box with raised red flag (send the message using MSMQ). </span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:10pt;line-height:115%;font-family:'Arial','sans-serif'">Your mail (message) then sits in this mail box near your house (outgoing queue). Note at that point you can get address wrong on your letter (bad format name), however that won’t stop you from putting letter into mail box (sending it).</span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:10pt;line-height:115%;font-family:'Arial','sans-serif'">OK, so later one mail man comes (network connection is established). Mail man picks your mail (MSMQ connects to the destination server) and if everything is OK it goes through the system (network) and ends up in receiving mail box (destination queue). Recipient (your application on the server) don’t have to be near (don’t have to be running) this mail box (queue) for mail to arrive. </span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:10pt;line-height:115%;font-family:'Arial','sans-serif'">At some point somebody (your application) opens mail box (application on the server reads from the destination queue) and gets mail. </span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:10pt;line-height:115%;font-family:'Arial','sans-serif'">What could go wrong here? Well, you can get address wrong. Mail man can never come (no network connection on device). Destination might be inaccessible, say avalanche blocked the roads (server is down or no network path to it) or there’s civil disturbance and it’s blocked out by the police (firewall or security configuration prevents connection to the server).</span></p> <p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-size:10pt;line-height:115%;font-family:'Arial','sans-serif'">Another thing: I’m not absolutely sure, but you might have to install web server and configure MSMQ ISAPI DLL for SRMP to work. </span></p>Fri, 28 Dec 2007 19:50:53 Z2007-12-28T19:50:53Z