Hello All , I am getting the error in subject line and also sometimes get
The request was aborted: The request was canceled. Why is it happening ,sometimes the messages are being received properly.
I am calling a method XYZ in a loop till a certain count of messages .In XYz method below code is written to receive message..
Dim message AsBrokeredMessage= queueClient.Receive(TimeSpan.FromSeconds(0))
Error :Error during communication with Service Bus. Check the connection information, then retry
or
The request was aborted: Therequest was canceled.
Details:
StackTrace:atMicrosoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResultresult)
atMicrosoft.ServiceBus.Messaging.IteratorAsyncResult`1.RunSynchronously()
atMicrosoft.ServiceBus.Messaging.MessageReceiver.OnTryReceive(TrackingContexttrackingContext,Int32messageCount, TimeSpanserverWaitTime,IEnumerable`1& messages)
atMicrosoft.ServiceBus.Messaging.MessageReceiver.TryReceive(TrackingContexttrackingContext,Int32messageCount, TimeSpanserverWaitTime,IEnumerable`1& messages)
atMicrosoft.ServiceBus.Messaging.MessageReceiver.TryReceive(TimeSpanserverWaitTime,BrokeredMessage& message)
atMicrosoft.ServiceBus.Messaging.QueueClient.Receive(TimeSpanserverWaitTime)