My technical journal.

Maybe useful, maybe not.
posts - 105 , comments - 45 , trackbacks - 0

"The protocol 'net.msmq' is not supported."

The “Lessons Learned” blog has an update covering the error message "The protocol 'net.msmq' is not supported."

"The protocol 'net.msmq' is not supported."

OMG, a new lesson! Will wonders never cease?

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:

"The protocol 'net.msmq' is not supported."

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:

If you are hosting an MSMQ/WCF service in IIS, you have to tell IIS to allow net.msmq protocol. It's in the advanced settings for the application or site in which you are hosting the service.

.... aaaand, that's it.

Print | posted on Tuesday, December 28, 2010 12:17 AM |

Feedback

Gravatar

# re: "The protocol 'net.msmq' is not supported."

I am getting the same error and my situation is entirely the same except one thing, my site is hosted in the Visual Studio Web Server.

Any thoughts?
1/10/2011 8:34 PM | M Williams
Gravatar

# re: "The protocol 'net.msmq' is not supported."

Hi M,
If you need an answer quickly, I would recommend posting a comment on the “Lessons Learned” blog which contains the original post.
I won't be able to look into this problem at the moment.
Cheers
John Breakwell
1/11/2011 2:52 PM | John Breakwell
Gravatar

# re: "The protocol 'net.msmq' is not supported."

M Williams, did you find a solution to your problem. I ran into the same one. Maybe you could help me. Thanks!
1/24/2011 3:29 PM | Essay Writer
Gravatar

# re: "The protocol 'net.msmq' is not supported."

THANK YOU FOR POSTING THIS! I would have never found that setting. You saved me a lot of time. I owe you a beer. :-)
4/28/2011 11:09 PM | Kevin
Post A Comment
Title:
Name:
Email:
Comment:
Verification:
 

Powered by: