title: Service Bus - "The server did not provide a meaningful reply; this might be caused by a premature session shutdown"
body: <p>I'm following this implementation to receive Messages from service bus: <a href="http://msdn.microsoft.com/en-us/library/windowsazure/hh851744.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/windowsazure/hh851744.aspx</a>.</p>
  
  <p>The problem is that sometimes I get this error and I can't figure out what can I do to solve this.</p>
  
  <pre><code>Microsoft.ServiceBus.Messaging.MessagingCommunicationException was unhandled by user code
    HResult=-2146233088
    Message=Error during communication with Service Bus. Check the connection information, then retry.
    Source=Microsoft.ServiceBus
    IsTransient=true
    StackTrace:
      Server stack trace: 
         at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageReceiver.EndReceiveCommand(IAsyncResult result, IEnumerable`1&amp; messages)
         at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageReceiver.ReceiveAsyncResult.&lt;GetAsyncSteps&gt;b__27(ReceiveAsyncResult thisPtr, IAsyncResult a)
         at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
      Exception rethrown at [0]: 
         at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
         at Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult)
         at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageReceiver.OnEndTryReceive(IAsyncResult result, IEnumerable`1&amp; messages)
         at Microsoft.ServiceBus.Messaging.OpenOnceManager.OpenOnceManagerAsyncResult`1.OperationComplete(IAsyncResult result)
         at Microsoft.ServiceBus.Common.AsyncResult.AsyncCompletionWrapperCallback(IAsyncResult result)
      Exception rethrown at [1]: 
         at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
         at Microsoft.ServiceBus.Messaging.OpenOnceManager.OpenOnceManagerAsyncResult`1.End(IAsyncResult result, T&amp; output)
         at Microsoft.ServiceBus.Messaging.OpenOnceManager.End[T](IAsyncResult result, T&amp; output)
         at Microsoft.ServiceBus.Messaging.MessageReceiver.EndTryReceive(IAsyncResult result, IEnumerable`1&amp; messages)
         at Microsoft.ServiceBus.Messaging.MessageReceiver.EndReceive(IAsyncResult result)
         at Microsoft.ServiceBus.Messaging.SubscriptionClient.EndReceive(IAsyncResult result)
         at Azure.WorkerCommandProcessor.WorkerRole.&lt;&gt;c__DisplayClass17.&lt;messageHandler&gt;b__10(IAsyncResult ar) in d:\TFS\DEV\Azure\Azure.Development\Azure.WorkerCommandProcessor\WorkerRole.cs:line 247
         at Microsoft.Practices.TransientFaultHandling.RetryPolicy.&lt;&gt;c__DisplayClass7.&lt;ExecuteAction&gt;b__4(IAsyncResult ar)
         at Microsoft.Practices.TransientFaultHandling.RetryPolicy.&lt;&gt;c__DisplayClass10`1.&lt;&gt;c__DisplayClass12.&lt;ExecuteAction&gt;b__c()
         at Microsoft.Practices.TransientFaultHandling.RetryPolicy.&lt;&gt;c__DisplayClass10`1.&lt;ExecuteAction&gt;b__d(Action a)
    InnerException: System.ServiceModel.CommunicationObjectFaultedException
         HResult=-2146233087
         Message=Internal Server Error: The server did not provide a meaningful reply; this might be caused by a premature session shutdown..TrackingId:bb1281ab-2334-4fa3-88bb-eadce71b0d37, Timestamp:07-01-2013 10:46:52
         Source=Microsoft.ServiceBus
         StackTrace:
           Server stack trace: 
           Exception rethrown at [0]: 
              at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
              at Microsoft.ServiceBus.Messaging.Sbmp.DuplexRequestBindingElement.DuplexRequestSessionChannel.DuplexCorrelationAsyncResult.End(IAsyncResult result)
              at Microsoft.ServiceBus.Messaging.Sbmp.DuplexRequestBindingElement.DuplexRequestSessionChannel.EndRequest(IAsyncResult result)
              at Microsoft.ServiceBus.Messaging.Channels.ReconnectBindingElement.ReconnectChannelFactory`1.RequestSessionChannel.RequestAsyncResult.&lt;GetAsyncSteps&gt;b__4(RequestAsyncResult thisPtr, IAsyncResult r)
              at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
           Exception rethrown at [1]: 
              at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
              at Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult)
              at Microsoft.ServiceBus.Messaging.Channels.ReconnectBindingElement.ReconnectChannelFactory`1.RequestSessionChannel.EndRequest(IAsyncResult result)
              at Microsoft.ServiceBus.Messaging.Sbmp.RedirectBindingElement.RedirectContainerChannelFactory`1.RedirectContainerSessionChannel.RequestAsyncResult.&lt;&gt;c__DisplayClass17.&lt;GetAsyncSteps&gt;b__a(RequestAsyncResult thisPtr, IAsyncResult r)
              at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
           Exception rethrown at [2]: 
              at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
              at Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult)
              at Microsoft.ServiceBus.Messaging.Sbmp.RedirectBindingElement.RedirectContainerChannelFactory`1.RedirectContainerSessionChannel.EndRequest(IAsyncResult result)
              at Microsoft.ServiceBus.Messaging.Channels.ReconnectBindingElement.ReconnectChannelFactory`1.RequestSessionChannel.RequestAsyncResult.&lt;GetAsyncSteps&gt;b__4(RequestAsyncResult thisPtr, IAsyncResult r)
              at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
           Exception rethrown at [3]: 
              at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
              at Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult)
              at Microsoft.ServiceBus.Messaging.Channels.ReconnectBindingElement.ReconnectChannelFactory`1.RequestSessionChannel.EndRequest(IAsyncResult result)
              at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageReceiver.EndReceiveCommand(IAsyncResult result, IEnumerable`1&amp; messages)
         InnerException: 
  </code></pre>