Hi, I want to display the messages from Queue in consoleapplication.I am able to read the queues.But while displaying, if i had 6 messages in queue and in that i am able to display only 3.Please help me out in solving this. My code is as follows: string QueueName = ".\\Private$\\TestQ"; MessageQueue.EnableConnectionCache = false; //// open the selected message queue this.messageQueue = new MessageQueue(QueueName, QueueAccessMode.Receive); while (true) { System.Messaging.Message message = new System.Messaging.Message(); MessageQueueTransaction msgTx = new MessageQueueTransaction(); MessageDetails messageDetails = null; try { msgTx.Begin(); message.Formatter = new BinaryMessageFormatter(); message = messageQueue.Receive(new TimeSpan(0, 0, 0, 10), msgTx); if (message.Body != null) { messageDetails = (MessageDetails)message.Body; Console.WriteLine(messageDetails.ApplicationName + "\t" + messageDetails.ThreadName + "\t" + messageDetails.Status + "\t" + messageDetails.TimeStamp); } msgTx.Commit(); messageQueue.BeginReceive(); } Thanks in Advance
honeyss
Posts
-
Reading Message from MSMQ and DIsplaying -
Paging for InsideGrid in Grid Inside GridHi Can anyone help me in implementing paging for child grid while using childGrid inside parentGrid. Thanks in advance Honey :)
-
Getting Top 5 from table of same categoryTop2 based on each categoryname..........
-
Getting Top 5 from table of same categoryHi Friends, Let me Show u my table first and explain the problem later CategoryID CategoryName 1 MSDN 2 Google 3 Project 4 Code 5 Google 6 Project 7 MSDN 8 Google 9 Google 10 MSDN 11 Project 12 Project Now i need the top 2 categorynames from categorynames. I need the result as below CategoryID CategoryName 1 MSDN 7 MSDN 2 Google 5 Google 3 Project 6 Project 4 Code Please some one help me in getting this Query............ Thanks in Advance :)
-
Transfer different files at a time from one page to another [modified]Hi can anyone help me how to post two different files of different formats from one page to another page using HTTP Post. Thanks in Advance :)
modified on Wednesday, April 2, 2008 1:08 AM
-
Dynamically generating XHTML using asp.netHi Mike ......... I didnt reposted the question....... Please once go through these question thoroughly.... In the previoues post i posted the question as how to transform xml to XHTML... and now the post is how to generate XHTML code Dynamically .......... :((
-
Dynamically generating XHTML using asp.netCan anyone help me regarding generating XHTML dynamically using asp.net......... Thanks in Advance :)
-
XML to HTML Conversion in .NetHi Can i anyone provide me the links for the conversion of XML to XHTML in .Net. Thanks in Advance.
-
Tooltip for dropdown list itemsits impossible to have a tooltip for dropdown list items
-
Redierct to another page when we press on Enter Key instead of Submit buttonHI I had two textboxes username and password and a button(Submit). Now if i press Enter Key from Keyboard instead of clicking on Submit button the page should be automatically redirected to another page.......... Please some one help me.......... Thanks in Advance
-
WebServiceHi Please help me in this regard.How to keep more than one wsdl classes in the same solution. Thanks in advance
-
Saving the word document at the serverHi , I am doing a website that shows one word document to everyone. If the users open that and would like to edit the information they can edit.But when they go to save button and saves it, it must be changed on the website such that the users who browses the website can view that............ Can anyone provide me the necessary code for saving the document at the server side. Thanks in Advance :)
-
Clearing textbox on focusHi Ramesh, First of all let me thank u for coming forward to help me. In that link they are using Javascript.I need that with out using Javascipt as i am into developing wap site........
-
Clearing textbox on focusok thank you
-
Clearing textbox on focusok thank you............But if there is any possibility let me know............
-
Clearing textbox on focusCan i use javascript for mobile wap browsers
-
Clearing textbox on focusHi I need to clear the textbox when we focus on the textbox control without using javascript. Plz anyone help me in this regard. Thanks in Advance Bye:)
-
Win32 events in Webformsthere are some application which listen for win32 events on the same system where we are hosting the webpage,Still it is not working........... will it work if we change process model in machine.config...............
-
Win32 events in WebformsHi , I have created win32 events using kernel32.dll in webforms.It is working fine in the local system.But when i am hosting in the Server i am unable to create the events.Can anyone help me in this regard.
-
DropDownlist in Ajax when using MasterPagesHi, I have kept ScriptManager in MasterPage and UpdatePanel in contentpage.My code in content page is as follows: But selectedIndexchaged event is not firing. Can anyone help me in this regard.Thanks in Advance,.................