Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A first chance exception of type 'Microsoft.WindowsAzure.Storage.StorageException' occurred in Microsoft.WindowsAzure.Storage.dll

I am trying to use a queue and here is the exception i am getting:

A first chance exception of type 'Microsoft.WindowsAzure.Storage.StorageException' occurred in Microsoft.WindowsAzure.Storage.dll

Additional information: The remote server returned an error: (400) Bad Request.

I also checked this question but couldnt find my answer: Exception of type 'Microsoft.WindowsAzure.StorageClient.StorageClientException' was thrown

this is the code:

    storageAccount = CloudStorageAccount.Parse(
    CloudConfigurationManager.GetSetting("StorageConnectionString"));
    queueClient = storageAccount.CreateCloudQueueClient();
    rawMessageQueue = queueClient.GetQueueReference("rawMessageQueue");

    private CloudQueue rawMessageQueue;
    var QueueExists = rawMessageQueue.Exists();
like image 223
user3311522 Avatar asked Nov 11 '22 04:11

user3311522


1 Answers

Just update the following dlls:

  1. Microsoft.WindowsAzure.Storage.dll

  2. Microsoft.WindowsAzure.Configuration.dll

enter image description here

Then rebuild .

like image 91
Romeo Acharya Avatar answered Nov 14 '22 22:11

Romeo Acharya