<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>WCF</title>
        <link>http://geekswithblogs.net/LessonsLearned/category/11887.aspx</link>
        <description>Windows Communication Foundation, one of the most powerful and flexible networking frameworks out there. Which of course means it's difficult to understand. </description>
        <language>en-US</language>
        <copyright>Randolpho St. John</copyright>
        <managingEditor>randolpho@gmail.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <item>
            <title>"The protocol 'net.msmq' is not supported."</title>
            <link>http://geekswithblogs.net/LessonsLearned/archive/2010/12/27/the-protocol-net.msmq-is-not-supported.aspx</link>
            <description>&lt;p&gt;OMG, a new lesson! Will wonders never cease?&lt;/p&gt;
&lt;p&gt;So I ran into an interesting issue setting up a WCF service to consume an MSMQ queue. I won't bother you with the details of how to actually build a WCF/MSMQ service; there are plenty of tutorials on the subject. I want to share with you an interesting error that I ran into and the surprisingly simple fix. The error occurs when attempting to generate a Service Reference or even simply browsing to the WSDL of your WCF/MSMQ service in the form of a YSOD with the following error:&lt;/p&gt;
&lt;blockquote&gt;"The protocol 'net.msmq' is not supported."&lt;/blockquote&gt;
&lt;p&gt;After a lot of Googling on the subject turning up plenty of questions with the same error but no answers. So I went digging into some application level config files on a server that already had a WCF/MSMQ service successfully set up by the network admin, and the answer was amazingly simple:&lt;/p&gt;
&lt;p&gt;If you are hosting an MSMQ/WCF service in IIS, you have to &lt;b&gt;tell&lt;/b&gt; IIS to allow net.msmq protocol. It's in the advanced settings for the application or site in which you are hosting the service. &lt;/p&gt;
&lt;p&gt;.... aaaand, that's it.&lt;/p&gt; &lt;img src="http://geekswithblogs.net/LessonsLearned/aggbug/143242.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Randolpho St. John</dc:creator>
            <guid>http://geekswithblogs.net/LessonsLearned/archive/2010/12/27/the-protocol-net.msmq-is-not-supported.aspx</guid>
            <pubDate>Tue, 28 Dec 2010 05:05:49 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/LessonsLearned/comments/143242.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/LessonsLearned/archive/2010/12/27/the-protocol-net.msmq-is-not-supported.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/LessonsLearned/comments/commentRss/143242.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/LessonsLearned/services/trackbacks/143242.aspx</trackback:ping>
        </item>
    </channel>
</rss>
