Connected to azure blob storage. I get the following error while using it, what happens when?
'/' 응용 프로그램에 서버 오류가 있습니다.
값은 null일 수 없습니다.
매개 변수 이름: connectionString
설명:현재 웹 요청을 실행하는 동안 처리되지 않은 예외가 발생했습니다. 스택 추적을 검토하여 발생한 오류 및 코드에서 오류가 발생한 위치에 대한 자세한 정보를 확인하십시오.
예외 정보:System.ArgumentNullException: 값은 null일 수 없습니다. 매개 변수 이름: connectionString
소스 오류:
줄 30: public NoticeService()
줄 31: {
줄 32: _storageAccount = CloudStorageAccount.Parse(
줄 33: CloudConfigurationManager.GetSetting("text-blob"));
줄 34: var blobClient = _storageAccount.CreateCloudBlobClient();
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
23 Points
157 Posts
The blob storage value cannot be null.
Feb 11, 2020 02:35 AM|slkim|LINK
Connected to azure blob storage. I get the following error while using it, what happens when?
'/' 응용 프로그램에 서버 오류가 있습니다.
값은 null일 수 없습니다.
매개 변수 이름: connectionString
설명: 현재 웹 요청을 실행하는 동안 처리되지 않은 예외가 발생했습니다. 스택 추적을 검토하여 발생한 오류 및 코드에서 오류가 발생한 위치에 대한 자세한 정보를 확인하십시오.
예외 정보: System.ArgumentNullException: 값은 null일 수 없습니다.
매개 변수 이름: connectionString
소스 오류:
줄 30: public NoticeService() 줄 31: { 줄 32: _storageAccount = CloudStorageAccount.Parse( 줄 33: CloudConfigurationManager.GetSetting("text-blob")); 줄 34: var blobClient = _storageAccount.CreateCloudBlobClient();
Participant
1320 Points
491 Posts
Re: The blob storage value cannot be null.
Feb 12, 2020 07:01 AM|jiadongm|LINK
Hi slkim,
It seems that you didn't set the connection string. You can refer to the below links:
https://docs.microsoft.com/en-us/azure/storage/common/storage-configure-connection-string
https://markheath.net/post/how-to-use-azure-blob-storage-with
Best Regards,
Jiadong Meng