如何在Web代理类中访问MSMQ

发布于 2024-10-14 03:04:50 字数 332 浏览 6 评论 0原文

我创建了一个托管在 IIS 5.1 上的 wcf Web 服务。在服务实现类中,有一个方法 GetAlarm 可以访问该系统上的 MSMQ。在示例 win 表单应用程序中,我实例化 Web 代理来调用 GetAlarm 方法。但问题是,当我使用本地计算机的代理使用 GetAlarm 方法时,它会提示错误,例如“他队列不存在或您没有足够的权限来执行该操作。”。虽然我已在相应的队列用户(属性/安全性)中授予所有用户完全权限。我可以使用 Web 代理访问其余方法,但不能使用 msmq。

如果我使用没有代理的 GetAlarm 方法,那么它工作正常。

请帮忙;

阿尔温德

I've created a wcf web service hosted on IIS 5.1. In the service implementation class there is a method GetAlarm which access the MSMQ on that system. In a sample win form application i instantiate web proxy to call GetAlarm method. But the problem is that when i use GetAlarm method using proxy for local machine then it propmts error like "he queue does not exist or you do not have sufficient permissions to perform the operation.". While i've given all the users full permission in corresponding queue users (properties/security). I can access the rest of methods using web proxy but not msmq.

If i use the GetAlarm method without proxy then it works fine.

please help;

arvind

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

诗酒趁年少 2024-10-21 03:04:50

你说“我已经授予所有用户完全权限”。
您授予了哪些权限以及哪些帐户?

安全问题的一个简单测试是暂时给予“每个人”和“匿名登录”队列完全控制权。如果有效,那么就是权限问题。

如果您已向您认为正在访问队列的帐户授予权限,但访问仍然被拒绝,那么您可以在队列上启用安全审核以检查实际使用的帐户。

另请参阅
https://stackoverflow.com/questions/4758627/how-to- access-message-queue-msmq-via-wcf

干杯
约翰·布瑞克威尔

You say "I've given all the users full permission".
What permissions did you give and to which accounts?

An easy test for security issues is to temporarily give "Everyone" and "Anonymous Logon" Full Control to the queue. If that works then it is a permissions issue.

If you have given the permissions to the account that you think is accessing the queue but still get access denied then you could enable security auditing on the queue to check what account is actually being used.

Also see
https://stackoverflow.com/questions/4758627/how-to-access-message-queue-msmq-via-wcf

Cheers
John Breakwell

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文