locked
how to access msmq using wcf web service RRS feed

  • Question

  • i have created a WCF web service on my local machine. I have a created a method in separate dll which create message queue on system and add corresponding message in that queue. Problem is that when i use this dll through web proxy to call method from dll to add message in message queue then it prompts error "The queue does not exist or you do not have sufficient permissions to perform the operation.". I am providing the correct credential to web proxy and able to call other methods implemented.

    When i use the same method from dll in sample application it works fine.

    please help.

     

    thanks

    arvind

    Monday, January 24, 2011 4:33 AM

Answers

All replies

  • Does the web hosted service have security rights to access the queue? Check that the account the service runs under has access to the queue by checking the security properties of the queue
    Richard Blewett, thinktecture - http://www.dotnetconsult.co.uk/weblog2
    Twitter: richardblewett
    Monday, January 24, 2011 8:24 AM
  • Thanks Richard,

    I've given full rights to all user in properties/security for concern queue. even then its prompting error. I am using IIS 5.1. Is net.msmq is supported on this version of IIS.

     

    arvind

    Monday, January 24, 2011 12:12 PM
  • support for net.msmq activation was introduced in IIS 7.

    However, that doesn't appear to be what you were asking. You have functionality in a DLL that puts a message on an MSMQ queue and you want to be able to use that functionality from a WCF service - is that correct?


    Richard Blewett, thinktecture - http://www.dotnetconsult.co.uk/weblog2
    Twitter: richardblewett
    Monday, January 24, 2011 3:48 PM
  • Yes ! you are right.

    I want to do same thing.

    can you please send me sample application in wcf which puts the message in MSMQ using the web proxy. Or any link for same.

    arvind

    Thursday, January 27, 2011 4:06 AM
  • any idea please :(
    Friday, January 28, 2011 9:07 AM
  • Richard,

    suppose a case where MSMQ is deployed on Machine-1 with user name User-1

    form other Machine-2 with user name User-2 i call a method using wcf proxy for Machine-1

    please let me know in that case for which user i need to give permission on Machin-1 to able to use MSMQ by called mwthod using wcf proxy requested from Machine-2. And how can i do that.

    thanks

    arvind

    Friday, February 4, 2011 6:52 AM
  • Are the two machines in the same domain or are they a workgroup?

    If a workgroup then for this to work you will have to create a user with the same name and password as the service account on the MSMQ machine and give that permissions to send to the queue


    Richard Blewett, thinktecture - http://www.dotnetconsult.co.uk/weblog2
    Twitter: richardblewett
    • Marked as answer by Arvind - SAIC Tuesday, March 1, 2011 6:33 AM
    Friday, February 4, 2011 7:21 AM