Getting "A connection with the server could not be established" connecting to blob storage from App Service RRS feed

  • Question

  • Hi,

    I have an API that is running on an Azure App Service. It uses the Azure Storage SDK to connect to a blob storage account. This code has been working fine for months. However suddenly when restarting the API I am getting the following exception during the API start up:

    Microsoft.WindowsAzure.Storage.StorageException: An error occurred while sending the request. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.WinHttpException: A connection with the server could not be established at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Threading.Tasks.RendezvousAwaitable`1.GetResult() at System.Net.Http.WinHttpHandler.<StartRequest>d__105.MoveNext() --- End of inner exception stack trace ---

    I have doubled checked all of the connection strings and access keys and have ensured that there are no app firewalls in place that would be blocking traffic. This same code is running in test and integration environments without any issues. I have also tried recreating the entire resource group without any success. I'm unsure of what to try next.

    • Moved by Fei Hu Wednesday, February 7, 2018 9:14 AM azure related
    Thursday, February 1, 2018 3:05 AM

All replies

  • Thursday, February 1, 2018 5:38 AM
  • Hello S,

    You issues is more related to Azure, you could repost a new thread to azure forum for better solution and professional support.

    If you have some grammar or code errors, please feel free to contact us. We will try our best to give you a solution.

    Best Regards,

    Neil Hu

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, February 7, 2018 9:13 AM