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 3324054
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:22:33+00:00 2026-05-17T23:22:33+00:00

I have a Web App and a service sitting on the same machine and

  • 0

I have a Web App and a service sitting on the same machine and communicating via message queues. The problem I’m experiencing is that about half of the time the messages I send from the service are not arriving to the reading code in the web app. Some of them will arrive and some will not. The messages are sent with at least 1 second delay between them.

To make things harder – I don’t see ANY of my messages in the management console, even those that do arrive. I turned journaling on, but see no difference. I have full access to the queue.

I’m new to MSMQ and suppose it is something small I miss, but from reading online I could not figure it out.

The reading code looks like this:

public SomeMethod
{
 ...
    MessageQueue respQ = Utils.GetResponseQueue();
    respQ.Formatter = new XmlMessageFormatter(new Type[] { typeof(String) });
    respQ.ReceiveCompleted += new ReceiveCompletedEventHandler(OnReceiveCompleted);
    respQ.BeginReceive();
}
public void OnReceiveCompleted(Object source, ReceiveCompletedEventArgs asyncResult)
{
    MessageQueue replyQueue = (MessageQueue)source;
    Message replyMessage = replyQueue.EndReceive(asyncResult.AsyncResult);

    try
    {
          //process the message
          //...

    }
    catch (Exception)
    {
    }

    replyQueue.BeginReceive();
}

Would appreciate help on both missing messages and on messages not appearing in the management console

Moshe

  • 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-17T23:22:34+00:00Added an answer on May 17, 2026 at 11:22 pm

    Well, it seems I’ve resolved it.

    1. The issue with messages not seen in the management console seems really weird to me. I was creating the queue from my code if it did not existed (like in all samples out there). It turned out that if I set the queue label to something – I can see its messages in the management consoles. Otherwise – I can’t. I did not look for the explanation, on the surface the things are not related in ay way and it seems like a bug to me.

    2. Missing messages – most proabably the problem was not in the queue, but in how I treated the read messages. I was retrieving them from a AJAX timer postback and adding to a session state variable. The problem I discovered was that this timer callback sometimes came in the original session, and sometimes – not. So I was not seeing some of my messages printed.

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

Sidebar

Related Questions

I have a web service app, I have 1 web service call that could
I have a WCF web-service and a Silverlight app displaying data from that service.
I have a php web service that takes the request from android/iphone app and
I have a Linux/c client app that connects to a WCF web service over
I have a winforms app, that's locking up during a web service request I've
We have an web app that is talking to Netsuite via Netsuite's web services.
I have java app that uses Axis to get data from web service. web
I have a web app (MVC) where I need some automatic service to run
I want to build a REST web service on app engine. Currently i have
We have an Android app and a Web Service. We want to download part

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.