Accessing MSMQ from Windows Services

Hi,

When i try to Access MSMQ from Windows Appliaction by using the following code it is working fine but i am not able to do this from my windows Services.

Plz help me out in resolving this issue.

=========================

Public Sub send()

Dim myQueue As MessageQueue

Try

' connect to the queue and send the message

myQueue = New MessageQueue(".\private$\DevXTestQueue")

myQueue.Send(".\private$\DevXTestQueue")

Catch ex As Exception

MsgBox("Exception was thrown: " & ex.Source & ": " & ex.Message)

End Try

==================================

Thanks

Masthan PMJ



Answer this question

Accessing MSMQ from Windows Services

  • Alicia Rose

    thank u it is working fine
  • Lina María Villa

    What error message are you getting Guessing, it probably has something to do with security. Right-click "My Computer", Manage, Services and Applications, Message queuing, Private queues. Right click your queue, Properties and click the Security tab.



  • Accessing MSMQ from Windows Services