无法在Windows 7中读取远程msmqueue [英] can't read remote msmqueue in windows 7

查看:82
本文介绍了无法在Windows 7中读取远程msmqueue的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在远程系统中托管了一个msmqueue,我可以非常成功地读取和写入队列.但是当我尝试从Windows 7 OS系统读取时,它不允许我从队列中读取.他们告诉我可以使用directformatname,但是我正在使用netmsmq方法.我可以使用Windows 7 OS系统从远程系统读取msmqueue吗?

i just hosted an msmqueue in remote system,and i can read and write into queue very successfully.but when i trying to read from an windows 7 OS system,it doesn''t allow me to read from queue.they told me to use directformatname,but i am using netmsmq method.can i read msmqueue from remote system using an windows 7 OS system??

推荐答案

MSMQ远程发送和接收消息:-
MSMQ安装:-
1.启用了带有事务性选项安装的msmq.
2.选中带有身份验证选项安装的msmq.
3.msmq已安装并启用了AD选项.
在WIN7中,msmq版本为5.0
在WINXP中,msmq版本为3.0
可能的情况:-
服务(WINXP)和QueueServer(WINXP)反之亦然.
服务(WIN7)和QueueServer(WINXP)反之亦然.
条件:-
1.使用域帐户.
2.使用启用了Windows凭据的传输安全模式.

使用上述条件,我们可以在WiNXP和WINXP之间,也可以在WIN7和WIN7之间发送和接收消息.

跨平台问题:-
服务(WINXP)和QueueServer(WIN7)反之亦然.
条件:-
1.使用域帐户.
2.使用启用了Windows凭据的传输安全模式.

例外:-
1.MSMQ版本冲突
在WIN7中,msmq版本为5.0
在WINXP中,msmq版本为3.0
默认情况下,msmq 5.0不支持MD5,sha1的弱哈希算法,仅支持sha512.
默认情况下,msmq 3.0仅支持弱哈希算法而不支持sha512.
因此,在使用Windows凭据启用的我们的条件"中,传输安全性使用msmqsecurehashalgorithm是deafult的sha1.我们可以选择其他选项,包括md5,sha256,sha512.
这些设置可以通过编程方式完成.
我们不能使用弱哈希算法,因为msmq5.0在显示无效签名错误时不支持该算法.
我们不能使用sha512,因为以下版本的msmq4.0不支持sha512,当我们使用它时会显示无效的签名错误.
解决方案:-
我们可以通过添加注册键"WeakHashAlgorithms"来启用msmq5.0中的weakhash算法.在"HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ MSMQ \ Parameters \ Security"中
如果只想启用某些weakhash算法,则必须通过添加相应的registerkey来指定要禁用的算法.因此,禁用了相应的算法.
适用于MD2的32769

适用于MD4的32770

适用于MD5的32771

适用于MAC的32773

SHA1的32772


2.MSMQ远程事务接收:-

较低的msmqversions的MSMQ版本4.0和更高版本不支持内部msmq远程事务处理的接收.
例如:当服务在WIN7上运行并且队列服务器在WINXP上时,无法进行远程事务接收.
当安装了Remote Queue 4.0及更高版本时,可以进行内部msmq远程事务接收.
例如:当服务在WINXP上运行并且队列服务器在WIN7上时,可以进行远程事务接收
MSMQ Remote send and Receive of Messages:-
MSMQ installation:-
1.msmq installed with transactional option is enabled.
2.msmq installed with authentication option is unchecked.
3.msmq installed with AD option enabled.
In WIN7 msmq version is 5.0
In WINXP msmq version is 3.0
Possible cases:-
service(WINXP) and QueueServer(WINXP) vice versa.
service(WIN7) and QueueServer(WINXP) vice versa.
conditions:-
1.Using domain account.
2.Use transport security mode enabled with windows credentials.

Using above conditions we can send and receive messages between WiNXP to WINXP also between WIN7 to WIN7.

Cross Platform issue:-
service(WINXP) and QueueServer(WIN7) viceversa.
conditions:-
1.Using domain account.
2.Use transport security mode enabled with windows credentials.

Exceptions:-
1.MSMQ version conflicts
In WIN7 msmq version is 5.0
In WINXP msmq version is 3.0
By default msmq 5.0 doesn''t support weak hash algorithms that are MD5,sha1.It only support sha512.
By default msmq 3.0 support only weak hash algorithms not sha512.
So In Our Conditions transport security enabled with windows credentials it uses msmqsecurehashalgorithm is sha1 by deafult.we can have other options include md5,sha256,sha512.
these settings can be done through programmatically.
We can''t use weak hash algorithms because msmq5.0 doesn''t support that,when we use it shows an invalid signature error.
We can''t use sha512 because msmq4.0 below versions doesn''t support that,when we use it shows an invalid signature error.
solution:-
we can enable weakhash algorithms in msmq5.0 by adding registerkey "WeakHashAlgorithms" in "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Parameters\Security"
if we want to enable certain weakhash algorithms only, then we must specify algorithms that we want to disable by adding corresponding registerkey.So the Corresponding algorithm is disabled.
32769 for MD2

32770 for MD4

32771 for MD5

32773 for MAC

32772 for SHA1


2.MSMQ Remote Transacted Receive:-

internal msmq remote transacted receive is not supported in MSMQ version 4.0 and higher from lower msmqversions.
example:-remote transacted receive is not possible when service is running on WIN7 and queue server is on WINXP.
internal msmq remote transacted receive is possible When Remote Queue is installed version 4.0 and above.
example:-remote transacted receive is possible when service is running on WINXP and queue server is on WIN7


这篇关于无法在Windows 7中读取远程msmqueue的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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