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
SSL Connection error while accessing Azure Storage Blob from Local Xamarin Project
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);
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
2 answers
Sort by: Most helpful
-
-
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,