Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5997335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:14:56+00:00 2026-05-23T00:14:56+00:00

Okay, here is a very simple and fundamental question. If I have an application

  • 0

Okay, here is a very simple and fundamental question.
If I have an application on windows machine A that wants to write to a queue on windows machine B, do I need to have MSMQ installed on machine A (even though there is no queue there)? I am just beginning to use queues for my applications and trying to figure some fundamentals out.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T00:14:56+00:00Added an answer on May 23, 2026 at 12:14 am

    Yes, you need MSMQ installed locally to write to a remote queue. If you’re writing to a private queue, take a look at this page which has useful information on how to format the queue name. If you’re writing to a remote Transactional queue, then you need to make sure you specify that correctly (point 5)

    This is the article text:

    1. When working with remote queues, the queue name in the format machinename\private$\queuename doesn’t work. This results in an
    “invalid queue path” error.

    2. The queue name has to be mentioned as FormatName:Direct=OS:machinename\\private$\\queuename.

    This is necessary since the queue access is internally done using the format
    name syntax only. The other friendly representation is converted to
    the FormatName and then used. When working with remote queues, unless
    there is an AD to resolve the queue name, the friendly name won’t
    work. Check out documentation for details.

    For Eg.

    MessageQueue rmQ = new MessageQueue 
                  ("FormatName:Direct=OS:machinename\\private$\\queue");
    rmQ.Send("sent to regular queue - Atul");
    

    3. Further to previous point, note that FormatName is case sensitive. If you mention the earlier string as
    FORMATNAME:Direct=OS:machinename\\private$\\queuename, it won’t
    work. Surprisingly, there is no error thrown in this case.
    “FormatName” part of the string seems to be the only case sensitive
    part. Others can appear in different case. For eg. You can write
    “DIRECT”.

    4. In case you want to use the machine’s IP address the syntax will be FormatName:Direct=TCP:ipaddress\\private$\\queuename.

    For Eg.

    MessageQueue rmQ = new MessageQueue
                  ("FormatName:Direct=TCP:121.0.0.1\\private$\\queue");
    rmQ.Send("sent to regular queue - Atul");
    

    5. The transactional properties of the queue instance you create in code should match with that of the queue you are trying to send the
    message to. So in the earlier examples, I was sending message to a
    non-transactional queue. To send to a transactional queue, the code
    would be

    MessageQueue rmTxnQ = new MessageQueue
                ("FormatName:Direct=OS:machinename\\private$\\queue");
    rmTxnQ.Send("sent to Txn queue - Atul", MessageQueueTransactionType.Single);
    

    If the transactional properties don’t match, the message will not be
    delivered. The surprising part is again, I didn’t get any error, and
    the message just disappeared

    6. Finally, when you send messages to remote queue, a temporary outgoing queue is created on your own machine. This is used in case
    the remote queue is unavailable. If you go to the computer Management
    console (compmgmt.msc), and expand the Services and Applications /
    Message Queuing / Outgoing Queues, you would see these queues. The
    right side of the console should show the details including the state
    (connected or not) and the IP address(es) for the next hop(s).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay here is what I'm trying to do: I have a model object that
Okay, here's the scenario. I have a utility that processes tons of records, and
Okay, this is (probably) a very simple question, but I am afraid I know
This is probably a very simple question. I am new to Rails and have
Okay I have seen some very similar questions here but none seem to be
Okay, so here's the situation: I have an application which uses SDL and OpenGL.
Update: I realize that I put the question very badly. Here's a second run.
Okay here's my situation. I have the following branches development development-kirby (270 commits ahead
Okay so here is the deal. As the question states, I'm trying to POST
Okay basically here's where I'm at. I have a list of PropertyDescriptor objects. These

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.