<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Checking if MSMQ queues exist is hard work so should you bother?</title><link>http://blogs.msdn.com/b/johnbreakwell/archive/2008/07/31/checking-if-msmq-queues-exist-is-hard-work-so-should-you-bother.aspx</link><description>Frank Boyne , 5 star MVP , posted a great response to a question on the MSMQ newsgroups which I felt was worth reiterating. 
 Basically someone wanted to check if a private queue on a remote machine existed before they sent a message to it. The problem</description><dc:language>en-GB</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Checking if MSMQ queues exist is hard work so should you bother?</title><link>http://blogs.msdn.com/b/johnbreakwell/archive/2008/07/31/checking-if-msmq-queues-exist-is-hard-work-so-should-you-bother.aspx#9986456</link><pubDate>Sun, 28 Mar 2010 22:18:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9986456</guid><dc:creator>James</dc:creator><description>&lt;P&gt;But interestingly, it appears that CanRead is always false even if CanWrite is always true when using a remote private Q.&lt;/P&gt;
&lt;P&gt;Do you suppose there are any problems with relying on that?&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9986456" width="1" height="1"&gt;</description></item><item><title>re: Checking if MSMQ queues exist is hard work so should you bother?</title><link>http://blogs.msdn.com/b/johnbreakwell/archive/2008/07/31/checking-if-msmq-queues-exist-is-hard-work-so-should-you-bother.aspx#9880372</link><pubDate>Sat, 22 Aug 2009 14:47:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9880372</guid><dc:creator>Phil Scala</dc:creator><description>&lt;p&gt;During Application startup we check the CanWrite property is true documented here:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/system.messaging.messagequeue.canwrite.aspx"&gt;http://msdn.microsoft.com/en-us/library/system.messaging.messagequeue.canwrite.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;which should work if your using the direct format name for the queue's &lt;/p&gt;
&lt;p&gt;(though i just tested with Formatname:DIRECT=OS:nonhost\private$\masterqueue and it &amp;quot;CanWrite&amp;quot; and an outgoing queue is waiting for that machine, which will never come)&lt;/p&gt;
&lt;p&gt;Doubt that has helped at all...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9880372" width="1" height="1"&gt;</description></item><item><title>re: Checking if MSMQ queues exist is hard work so should you bother?</title><link>http://blogs.msdn.com/b/johnbreakwell/archive/2008/07/31/checking-if-msmq-queues-exist-is-hard-work-so-should-you-bother.aspx#9872184</link><pubDate>Mon, 17 Aug 2009 13:36:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9872184</guid><dc:creator>MSDNArchive</dc:creator><description>&lt;p&gt;Hi Koen,&lt;/p&gt;
&lt;p&gt;Could you please supply a sample of what you mean as I don't understand how your suggestion will work for private queues on remote machines.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;John Breakwell (MSFT) &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9872184" width="1" height="1"&gt;</description></item><item><title>re: Checking if MSMQ queues exist is hard work so should you bother?</title><link>http://blogs.msdn.com/b/johnbreakwell/archive/2008/07/31/checking-if-msmq-queues-exist-is-hard-work-so-should-you-bother.aspx#9872176</link><pubDate>Mon, 17 Aug 2009 13:25:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9872176</guid><dc:creator>Koen</dc:creator><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;Actually it is very simple : make an instance of a messagequeue class and ask the queuename. &amp;nbsp;You get a messagequeueexception if it does not exists. &amp;nbsp;If you capture that exception at a predifined place, it 's a very easy thing todo.&lt;/p&gt;
&lt;p&gt;Greetz,&lt;/p&gt;
&lt;p&gt;Koen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9872176" width="1" height="1"&gt;</description></item><item><title>re: Checking if MSMQ queues exist is hard work so should you bother?</title><link>http://blogs.msdn.com/b/johnbreakwell/archive/2008/07/31/checking-if-msmq-queues-exist-is-hard-work-so-should-you-bother.aspx#9319174</link><pubDate>Wed, 14 Jan 2009 21:29:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9319174</guid><dc:creator>MSDNArchive</dc:creator><description>&lt;p&gt;Hi Sharad,&lt;/p&gt;
&lt;p&gt;The MSMQ Ping utility, as documented here &amp;nbsp;(Test connectivity using MQPing (&lt;a rel="nofollow" target="_new" href="http://technet.microsoft.com/en-us/library/cc739689.aspx"&gt;http://technet.microsoft.com/en-us/library/cc739689.aspx&lt;/a&gt;) doesn't have an API for you to call it. And even if you could, it requires Active Directory so is going to be using pathname under the covers.&lt;/p&gt;
&lt;p&gt;So it's a great idea but I'm afraid you will have to rely on your own implementation as discussed in the blog post.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;John&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9319174" width="1" height="1"&gt;</description></item><item><title>re: Checking if MSMQ queues exist is hard work so should you bother?</title><link>http://blogs.msdn.com/b/johnbreakwell/archive/2008/07/31/checking-if-msmq-queues-exist-is-hard-work-so-should-you-bother.aspx#9303622</link><pubDate>Sat, 10 Jan 2009 10:09:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9303622</guid><dc:creator>Sharad</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is is possible to use MSMQ ping utility through DotNet code to acheive the same thing. I am actually looking for checking the satus of remote public queue using direct format name.&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9303622" width="1" height="1"&gt;</description></item></channel></rss>