Permissions error accessing MSMQ from ASP .Net Web Service

↘锁芯ラ 提交于 2019-12-03 17:16:21
RobD

My understanding of the problem is that the process trying to execute the code is running as a different account under IIS than it does under Cassini.

The problem was that regardless of which user I impersonated - I always got the same error message - even when the user was a member of the local and domain administrator groups, and this user had full permissions on the queue. i.e. It is barely possible to assign more rights to a user.

It turns out, that using a FormatName for the queue, rather than a path name (myMachine\queueName) has solved the problem...

FormatName:DIRECT=OS:myMachine\myQueue

I am uncertain as to exactly why this is the case. Reading up has showed that when a path name is used, there is a necessity for an AD lookup, and although I think that the users that I have been testing with should have rights to do this, perhaps there is something missing.

However the immediate problem is solved and that's good enough for me.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!