MSMQ in WCF

Last post 11-05-2009 6:57 PM by anup1252000. 3 replies.

Sort Posts:

  • MSMQ in WCF

    07-16-2009, 5:12 AM

    Hi All,

    i tried to execute the MSMQ sample provided in MSDN under th name "Exchange Queued Messages with WCF Endpoints".i hosted the service in IIS.but it gives me error like this.

    An error occurred while opening the queue:The queue does not exist, or you do not have sufficient permissions to perform the operation. (-1072824317, 0xc00e0003). The  message cannot be sent or received from the queue. Ensure that MSMQ is installed and running. Also ensure that the queue is available to open with the required access mode and authorization.

    I have installed messaging also but still am getting this error.please guide me, this is the first time am working on MSMQ concepts.

    Thanks,

    Arun.R

  • Re: MSMQ in WCF

    08-18-2009, 10:54 AM
    • Member
      4 point Member
    • tobyevans
    • Member since 08-18-2009, 2:51 PM
    • Posts 2

    Hi,

    have you created the queue? Go to "Computer Management" MMC, then "Services and Applications"/"Message Queueing". Under "Private Queues", create a new Queue


    I haven't tried this sample, but see what queue name it's expecting and use that 


    good luck!


  • Re: MSMQ in WCF

    08-26-2009, 3:16 AM
    • Member
      10 point Member
    • hardeepbhullar
    • Member since 08-12-2009, 12:11 PM
    • Ludhiana,India
    • Posts 5

    Hello,


    Please follow the following link this might help you:

    http://www.codeproject.com/KB/aspnet/WCFPart2.aspx#Introduction


    And for better performance:


    http://www.codeproject.com/KB/aspnet/10ASPNetPerformance.aspx

    With Best Regards
    Hardeep Singh Bhullar
  • Re: MSMQ in WCF

    11-05-2009, 6:57 PM
    • Contributor
      2,694 point Contributor
    • anup1252000
    • Member since 11-12-2008, 3:26 AM
    • india
    • Posts 541

    for this purpose in the endpoint address u need to specify message queue address like 

    net.msmq://machinename/private/anup

    anup is nothing but a queue name. 


    One more thing u check whether u created the Message queue or not by Using this method

     if (!MessageQueue.Exists(queuename))
                {
                    MessageQueue.Create(queuename);
                }

     if (!MessageQueue.Exists(queuename))

                {

                    MessageQueue.Create(queuename);

                }

    This Message queue will come under System.Messaging Namespace.

    Remember to click “Mark as Answer” on the post, if it helps you. Because It helps others to find the solution.

    Anup Hosur
    HP
    http://anup-anuphosur.blogspot.com/


Page 1 of 1 (4 items)