SSL Connection error while accessing Azure Storage Blob from Local Xamarin Project

Mahesh Balasubramanian 1 Reputation point
2020-06-21T04:08:57.747+00:00

I have created as Xamarin Project to upload images to Azure Blob Storage. While I am trying to access the Blob storage from my Local Machine's Xamarin Project. I am getting the following error while calling the below methods.

await container.CreateIfNotExistsAsync();

await blockBlob.UploadFromStreamAsync(stream); 10230-capture.png

Code:

private async void UploadImage(Stream stream)
{
var account = CloudStorageAccount.Parse("DefaultEndpointsProtocol=https;AccountName=sevenimages;AccountKey=KeyRemoved;EndpointSuffix=core.windows.net");
var client = account.CreateCloudBlobClient();
var container = client.GetContainerReference("imagecloudstorage");
await container.CreateIfNotExistsAsync();

        var name = Guid.NewGuid().ToString();  
        var blockBlob = container.GetBlockBlobReference($"{name}.jpg");  
        await blockBlob.UploadFromStreamAsync(stream);  

        string url = blockBlob.Uri.OriginalString;  
    }
Azure Firewall
Azure Firewall
An Azure network security service that is used to protect Azure Virtual Network resources.
753 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Ken Tucker 5,861 Reputation points
    2020-06-21T10:22:22.05+00:00

    What kind of Xamarin Project (android, ios, or uwp)? I am wondering if the platform you are running the xamarin project in does not support tls 1.1 or tls 1.2

    0 comments No comments

  2. Josu Uribe 1 Reputation point
    2022-12-15T21:19:18.047+00:00

    Hello,

    MaheshBalasubramanian-9478, did you find a solution for this? Could you share it?

    Thanks,

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.