title: Service Bus 1.1 (On Prem) Message Sender Retry Policy Not Working
body: <p>Not sure what is wrong with my retry policy logic with Service Bus 1.1.  We are not able to use Azure service bus.  I have tried several different configurations but still no luck getting it to fire.  It will just move right to the exception.  </p>
  
  <pre><code>TokenProvider provider = TokenProvider.CreateSharedAccessSignatureTokenProvider("RootManageSharedAccessKey", "&lt;key goes here&gt;");
  var retryPolicy = new RetryExponential(TimeSpan.FromSeconds(10), TimeSpan.FromMinutes(3),
                  TimeSpan.FromSeconds(10), TimeSpan.FromMinutes(5), 1000);
  var _factory = MessagingFactory.Create("&lt;Namespace Address&gt;", provider);
  var _sender = _factory.CreateMessageSender("Analytics");
  _sender.RetryPolicy = retryPolicy;
  var message = new BrokeredMessage("message");
  try
  {
     _sender.Send(message);
  }
  catch(Exception e) 
  {
      Console.WriteLine(e);
  }
  </code></pre>
  
  <p>I've made the retry policy abnormally large for testing purposes.  As far as I can tell it never retries the message.  I've tested the various exceptions including those where istransient is true. </p>
  
  <p>I have read through these posts and articles already:</p>
  
  <ul>
  <li><a href="https://docs.microsoft.com/en-us/azure/best-practices-retry-service-specific#service-bus-retry-guidelines" rel="nofollow noreferrer">Service Bus retry guidelines</a></li>
  <li><a href="https://stackoverflow.com/questions/41290387/azure-service-bus-retry-policy-doesnt-change-the-behavior">Azure Service Bus Retry Policy doesn't change the behavior</a></li>
  </ul>
  
  <p>Has anyone ever ran into this before?  I hope i'm just missing something simple.  </p>