Azure存储帐户 - 无法连接到远程服务器

时间:2016-12-15 12:08:38

标签: azure c#-4.0 azure-storage

我已登录Azure Portal并创建了一个存储帐户和容纳图像的容器。 (容器的访问类型设置为容器)。 现在我尝试使用C#代码上传图像。(通过门户上传图像并能够访问图像时工作正常。)

//   actName contains the storage account name and actKey contains the Access Key for that storage account.

StorageCredentials creds = new StorageCredentials(actName, actKey);
CloudStorageAccount imageStorageAccount = new CloudStorageAccount(creds, useHttps: true);

CloudBlobClient blobClient = imageStorageAccount.CreateCloudBlobClient();


CloudBlobContainer container = blobClient.GetContainerReference("newimages");
container.CreateIfNotExists();

这是一个错误:

  

无法建立连接,因为目标计算机是主动的   拒绝它51.136.40.24:443

对此的任何输入都会有所帮助。

2016年12月19日更新 它要求我将身份从ApplicationPoolIdentity更改为自定义用户名和帐户。有没有办法在不更改ApplicationPoolIdentity的情况下处理它?<​​/ p>

0 个答案:

没有答案
相关问题