访问消息排队系统被拒绝MSMQ? [英] Access to message queuing system is denied MSMQ?

查看:97
本文介绍了访问消息排队系统被拒绝MSMQ?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题有点混乱,我有2个安装了MSMQ的服务器(Windows Server 2008 R2),我希望在服务器A的服务器A中使用MessageQueue,但是当我尝试接收时总是抛出一条消息错误:访问消息排队系统被拒绝。。



他们之间的IP。



服务器A:172.31。 23.130

服务器B:172.31.23.195



FormatName:Direct = TCP:172.31.23.195\private $ \queuesource(这是工作发送)



我可以互相ping;

防火墙被禁用;

queuesource完全控制每个人,匿名登录,网络,网络服务;

期刊被禁用;

也经过身份验证;

并且队列是Transactional。

我在.Net C#中的代码基本上是这样的:



 MessageQueue _sourceQueue =  new  MessageQueue(); 
_sourceQueue.Path = FormatName:Direct = TCP:172.31.23.195\private $ \\\uesuesource ;
_sourceQueue.Receive(); // <<这里抛出一个异常访问消息被拒绝了......



实际上我只使用私有队列来避免Active Directory的问题,例如,如果服务器DNS掉线所有网络掉线。我不知道再做什么了。如果有人知道我真的很感激。

解决方案

\queuesource(这是发送的工作)



我可以互相ping;

防火墙是禁用的;

queuesource对Everyone,Anonymous Logon,Network具有完全控制权, 网络服务;

期刊被禁用;

也经过身份验证;

并且队列是交易的。

我在.Net C#中的代码基本上是这样的:



 MessageQueue _sourceQueue =  new  MessageQueue(); 
_sourceQueue.Path = FormatName:Direct = TCP:172.31.23.195 \ private


\queuesource;
_sourceQueue.Receive(); // <<这里抛出一个异常访问消息被拒绝了......



实际上我只使用私有队列来避免Active Directory的问题,例如,如果服务器DNS掉线所有网络掉线。我不知道再做什么了。如果有人知道我真的很感激。


经过几个小时多汗,HALLELUJAH。



答案是:



在服务器管理器>功能>右键单击消息队列>属性>

选项卡服务器安全性并禁用禁用未经过身份验证的RPC调用选项。


My problem is little confusing, I have 2 servers (Windows Server 2008 R2) with MSMQ installed and I want consume a MessageQueue are in Server A from Server B, but when I try to Receive always throw a message error: "Access to message queuing system is denied.".

IP between them.

Server A: 172.31.23.130
Server B: 172.31.23.195

FormatName:Direct=TCP:172.31.23.195\private$\queuesource(It's work to Send)

I can ping each other;
The firewall is disable;
The "queuesource" has Full Control to "Everyone", "Anonymous Logon", "Network", "Network Services";
Journal is disable;
Authenticated too;
And the queue is Transactional.
My code in .Net C# is basically like this:

MessageQueue _sourceQueue = new MessageQueue();
_sourceQueue.Path = "FormatName:Direct=TCP:172.31.23.195\private$\queuesource";
_sourceQueue.Receive(); // << here throw an exception "Access to message denied whatever..."


Actually I'm using Private Queue only to avoid Active Directory's problems, for example, if the server DNS fall all network fall. I don't know what do anymore. If someone know something I'm really appreciate.

解决方案

\queuesource(It's work to Send)

I can ping each other;
The firewall is disable;
The "queuesource" has Full Control to "Everyone", "Anonymous Logon", "Network", "Network Services";
Journal is disable;
Authenticated too;
And the queue is Transactional.
My code in .Net C# is basically like this:

MessageQueue _sourceQueue = new MessageQueue();
_sourceQueue.Path = "FormatName:Direct=TCP:172.31.23.195\private


\queuesource"; _sourceQueue.Receive(); // << here throw an exception "Access to message denied whatever..."


Actually I'm using Private Queue only to avoid Active Directory's problems, for example, if the server DNS fall all network fall. I don't know what do anymore. If someone know something I'm really appreciate.


After many hours and much sweat HALLELUJAH.

The answer is:

In "Server Manager">"Features"> Right click in "Message Queueing">"Properties">
Tab "Server Security" and disable the option "Disable un-authenticated RPC calls".


这篇关于访问消息排队系统被拒绝MSMQ?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆