title: Error connecting to Redis on .net Core app hosted on Azure
body: <p>We have a redis cache hosted on Azure and we use the following as a service in our .net core application:</p>
  
  <pre><code>services.AddSingleton&lt;IConnectionMultiplexer&gt;(provider =&gt; 
      ConnectionMultiplexer.Connect(Configuration.GetConnectionString("RedisConnection"))
  );
  </code></pre>
  
  <p>Our connection string is similar to the following:</p>
  
  <pre><code>ourserver.redis.cache.windows.net:6380,password=******=,ssl=True,abortConnect=False,syncTimeout=4000
  </code></pre>
  
  <p>in getting from cache we don't face problems but if we add to cache we sometimes get the following error:</p>
  
  <blockquote>
    <p>"StackExchange.Redis.RedisConnectionException: It was not possible to
    connect to the redis server(s); to create a disconnected multiplexer,
    disable AbortOnConnectFail. ConnectTimeout"</p>
  </blockquote>
  
  <p>I have read solutions like setting <code>abortconnect</code> to <code>false</code> and increasing the timeout but I have implemented it like the connection string above.</p>
  
  <p>If you have suggestions or you think that we have a problem with the connection string kindly advise.</p>
  
  <p>Update: we have implemented a solution to solve connectivity issue but now we get this:</p>
  
  <pre><code>StackExchange.Redis.RedisConnectionException: No connection is available to service this operation
  </code></pre>