user3311522
user3311522

Reputation: 1658

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();

Upvotes: 5

Views: 6330

Answers (1)

Romeo Acharya
Romeo Acharya

Reputation: 11

Just update the following dlls:

  1. Microsoft.WindowsAzure.Storage.dll

  2. Microsoft.WindowsAzure.Configuration.dll

enter image description here

Then rebuild .

Upvotes: 1

Related Questions