다음 간단한 코드를 사용하여 푸른 저장소를 만들려고합니다.Azure 저장소에 컨테이너를 만들 수 없습니다.
크로스 체크를 수동으로 수동으로 잘 시도했습니다.
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();
}
점점 오류 :
An unhandled exception of type 'Microsoft.WindowsAzure.Storage.StorageException' occurred in Microsoft.WindowsAzure.Storage.dll Additional information: The remote server returned an error: (407) Proxy Authentication Required.
의 App.config는
<appSettings>
<add key="StorageConnectionString" value="DefaultEndpointsProtocol=https;AccountName=ashuthinks;AccountKey=MYKEY"/>
</appSettings>
오류는 사용자가 프록시 서버를 사용하고 있음을 나타냅니다. 프록시 설정을 구성해야합니다 (대부분 app.config 파일에 있음). –
어떤 프록시 설정 : O 저를 도울 수 있습니까? – Neo
자세한 내용은 [this] (http://stackoverflow.com/questions/3994004/connecting-to-azure-storage-account-thru-proxy-server)를 참조하십시오. –