Azure Blob The filename, directory name, or volume label syntax is incorrect.

BlobContainerClient container = new BlobContainerClient(Environment.GetEnvironmentVariable("BlobConnectionString"), "$web");
            //container.Create();
            BlobClient blob = container.GetBlobClient("/asish.com/"+"keralaelection" + ".xml");
           
            string contentOTWrite = JsonConvert.SerializeObject(xmlDoc.OuterXml);
            contentOTWrite = contentOTWrite.Replace("\"", string.Empty).Trim();
            contentOTWrite = contentOTWrite.Replace('\\', '"').Trim();
            await blob.UploadAsync(contentOTWrite);

Add Comment