WCF分布式开发常见错误(19)2011-03-31 博客园 Frank Xu LeiWCF分布式开发常见错误(19):There was an error opening the queue打开消息队列出错在调试托管宿主 WCF MSMQ消息队列代码的时候出现错误:There was an error opening the queue. Ensure that MSMQ is installed and running, the queue exists and has proper authorization to be read from. The inner exception may contain additional information.打开队列有一个错误,确保MSMQ已经安装或者运行,队列存在和有读权限。异常内部也许包含额外的信息。解决办法:NetMsmqBinding queBinding = new NetMsmqBinding(NetMsmqSecurityMode.None); queBinding.ExactlyOnce = false; queBinding.Security.Message.ClientCredentialType = MessageCredentialType.UserName;