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.