I am using non transnational MSMQ message and all the message are being received in Queue but after 1-2 minutes all the message being disappeared and this is happening on iis application 2.0 and the same thing working fine using visual studio.
Asked
Active
Viewed 154 times
1 Answers
0
The issue looks resolved using below code and there is no IIS setting it was code issue:
// Peek and format the message.
msgQueue.Formatter = new BinaryMessageFormatter();
Message myMessage = msgQueue.Peek(new TimeSpan(0, 0, 3));
MailMessage mailMessage = (myMessage.Body as erializeableMailMessage).GetMailMessage();
if (SendMail(mailMessage))
{
msgQueue.Receive();
}

Ramesh Chand
- 251
- 2
- 10