C# 无法在Azure存储上创建容器
我正在尝试使用以下简单代码创建azure存储 手动尝试交叉检查工作罚款手动C# 无法在Azure存储上创建容器,c#,azure,azure-storage,azure-storage-blobs,C#,Azure,Azure Storage,Azure Storage Blobs,我正在尝试使用以下简单代码创建azure存储 手动尝试交叉检查工作罚款手动 static void Main(string[] args) { //Parse the connection string and return a reference to the storage account. CloudStorageAccount storageAccount = CloudStorageAccount.Parse(CloudConfigurationManager.GetS
static void Main(string[] args)
{
//Parse the connection string and return a reference to the storage account.
CloudStorageAccount storageAccount = CloudStorageAccount.Parse(CloudConfigurationManager.GetSetting("StorageConnectionString"));
//Create the blob client object.
CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient();
//Get a reference to a container to use for the sample code, and create it if it does not exist.
CloudBlobContainer container = blobClient.GetContainerReference("sascontainer");
container.CreateIfNotExists();
}
获取错误:
Microsoft.WindowsAzure.Storage.dll中发生类型为“Microsoft.WindowsAzure.Storage.StorageException”的未处理异常
其他信息:远程服务器返回错误:(407)需要代理身份验证
App.config
<appSettings>
<add key="StorageConnectionString" value="DefaultEndpointsProtocol=https;AccountName=ashuthinks;AccountKey=MYKEY"/>
</appSettings>
将
添加到下面解释的配置文件中
<configuration>
<system.net>
<defaultProxy enabled="true" useDefaultCredentials="true">
<proxy usesystemdefault="true" />
</defaultProxy>
</system.net>
<configuration>
该错误表示您坐在代理服务器后面。您需要配置代理设置(最有可能在app.config文件中)。您可以在这方面帮助我哪些代理设置:O?有关更多帮助,请参阅。