Error accessing MSMQ from ASP.Net Web Service

I wrote a web service that reads from a message queue . It works great under Cassini.

Now that I have deployed the service in IIS, I get an error when the service tries to access the queue:

The queue does not exist or you do not have sufficient privileges to perform the operation.

I set up an anonymous access user in the IIS virtual directory as my own domain account, which is a member of the administrators group on the local computer. I granted the same users full permissions in the queue, as well as NETWORK SERVICE and ASPNET.

I still get the same error message.

I also tried disabling anonymous access in the virtual directory and connecting to the service using my own login details - to no avail.

Any help with this issue would be greatly appreciated!


I also tried various combinations:

as well as With testUsr having full access rights to the queue. I added permissions for the user and ASPNET in the MSMQ repository folders on C: \

+3
source share
1 answer

My understanding of the problem is that the process trying to execute the code works as a different account in IIS than in Cassini.

, , - - , . .. .

, FormatName , (myMachine\queueName), ...

FORMATNAME: DIRECT = OS: _\myQueue

, . , AD, , , , , , - .

.

+5

Source: https://habr.com/ru/post/1706184/


All Articles