title: Unable to connect to Azure Table Storage in windows 2012 r2 and .net core 1.0.1
body: <p>I recently upgrade my asp.net core project from the rc2 version to 1.0.1. I am having trouble figuring out how to connect to Azure Table Storage. It seems that something is blocking my connection.</p>
  
  <p>Note that this code is working on my local dev box, <strong>Win10 15063</strong>. It does not work on my dev server, running <strong>Win2012R2</strong>. It was also working with the .net core preview version <strong>1.0.0-preview2-003133</strong>, but not the .net core final version <strong>1.0.1</strong></p>
  
  <p>I'm using the latest Azure Storage package, 8.1.1</p>
  
  <p>Here's my code</p>
  
  <pre><code>var azureTableStorageConnectionString = "DefaultEndpointsProtocol=https;AccountName=blah_blahstoragedev;AccountKey=Blahblah;EndpointSuffix=core.windows.net"; //Configuration["AzureStorageConnectionString"];
  
  storageAccount = CloudStorageAccount.Parse(connectionString);
  tableClient = storageAccount.CreateCloudTableClient();
  
  buildTable = tableClient.GetTableReference(BuildTableName);
  buildTable.CreateIfNotExists();
  </code></pre>
  
  <p>It failed with this exception:</p>
  
  <p>Microsoft.WindowsAzure.Storage.StorageException: 'Unable to connect to the remote server'</p>
  
  <ul>
  <li>InnerException  {"No connection could be made because the target machine actively refused it 127.0.0.1:8888"}   System.Exception {System.Net.Sockets.SocketException}</li>
  </ul>
  
  <blockquote>
    <p>StackTrace    "   at
    Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync[T](RESTCommand`1
    cmd, IRetryPolicy policy, OperationContext operationContext)</p>
    
    <p>at
    Microsoft.WindowsAzure.Storage.Table.TableOperation.Execute(CloudTableClient
    client, CloudTable table, TableRequestOptions requestOptions,
    OperationContext operationContext)</p>
    
    <p>at
    Microsoft.WindowsAzure.Storage.Table.CloudTable.Exists(Boolean
    primaryOnly, TableRequestOptions requestOptions, OperationContext
    operationContext)</p>
    
    <p>at
    Microsoft.WindowsAzure.Storage.Table.CloudTable.CreateIfNotExists(TableRequestOptions
    requestOptions, OperationContext operationContext)</p>
  </blockquote>