我试图用azure将屏幕截图存储到云中,但我不断收到此异常:
远程名称无法解析:'azuretest.blob.core.windows.net.blob.core.windows.net'
CloudStorageAccount storageAccount = CloudStorageAccount.Parse(CloudConfigurationManager.GetSetting("StorageConnectionString"));
CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient();
CloudBlobContainer container = blobClient.GetContainerReference("screenshots");
container.CreateIfNotExists();
有谁知道可能导致此异常的原因?
最佳答案
看起来您在连接字符串中使用了错误的帐户名,您应该具有:AccountName=azuretest
代替:AccountName=azuretest.blob.core.windows.net
关于c# - 创建Blob容器时无法解析远程名称,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/27019478/