System.Runtime.InteropServices.COMException(0xC00E000B):消息队列服务不可用
当调用 MSMQManagementClass.Init(Object& Machine, Object& PathName, Object& FormatName) 方法时,当客户端和 msmq 服务都在同一台机器上时,它可以正常工作。
当客户端和 msmq 服务位于不同域时,我收到以下错误
System.Runtime.InteropServices.COMException (0xC00E000B):消息 不提供排队服务 MSMQ.MSMQManagementClass.Init(对象和机器,对象和路径名, 对象&格式名称)
在 Windows 2008 服务器上
下面的代码给出了错误
var msmq = new MSMQManagement();
var machineName = MachineName
var pathName = null
var formatName = DIRECT=TCP:ipaddress\private$\testq
msmq.Init(ref machineName, ref pathName, ref formatName);
,但
效果很好
var queue = new MessageQueue(FormatName:DIRECT=TCP:ipaddress\private$\testq)
When MSMQManagementClass.Init(Object& Machine, Object& PathName, Object& FormatName) method is called it works fine when the client and msmq service are both on the same box.
When the client and msmq service are in different domain i get the following error
System.Runtime.InteropServices.COMException (0xC00E000B): The Message
Queuing service is not available at
MSMQ.MSMQManagementClass.Init(Object& Machine, Object& PathName,
Object& FormatName)
on windows 2008 server
Below code gives the error
var msmq = new MSMQManagement();
var machineName = MachineName
var pathName = null
var formatName = DIRECT=TCP:ipaddress\private$\testq
msmq.Init(ref machineName, ref pathName, ref formatName);
but
this works fine
var queue = new MessageQueue(FormatName:DIRECT=TCP:ipaddress\private$\testq)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你是说跨域还是跨林?
跨林MSMQ?您需要信任
您正在对远程计算机执行 RPC 操作,因此以下内容应该会有所帮助:
了解 MSMQ 安全性如何阻止 RPC 流量
干杯
约翰
Do you mean cross-domain or cross-forest?
Cross-forest MSMQ? You need to be trusting
You are performing an RPC operation to a remote machine so the following should help:
Understanding how MSMQ security blocks RPC traffic
Cheers
John
要使用 MSMQ,需要在发送方和接收方都安装 MSMQ。
To use MSMQ it requires that MSMQ is installed on both the sender and receiver.