问题
I am unable to create a queue on a remote server and the error i get is :
Cannot create a queue with the path FormatName:DIRECT=OS:server\private$\q
the code is as below:
Dim q As MessageQueue
q = MessageQueue.Create("FormatName:Direct=OS:Server\private$\queue")
I have tried with OS, TCP, HTTP and all the possible options given here but I have not been able to create a queue on remote machine. I am running Win 7 Enterprise on my dev box and Win Server 2003 R2 on the MSMQ server.
Am i missing some security / permission settings on the server or some other configuration ? would appreciate any help possible.
回答1:
You cannot create remote private queues.
You will need to manually create them at the remote machine or run a process there that does what you need.
回答2:
You cannot create remote queues. Look at MessageQueue.Create Method documenatation.
来源:https://stackoverflow.com/questions/5063672/cannot-create-private-message-queue-on-remote-server