Microsoft.WindowsAzure.Storage.dll中出现“Microsoft.WindowsAzure.Storage.StorageException”类型的第一次机会异常

时间:2014-08-01 19:14:24

标签: c# azure azure-storage

我正在尝试使用队列,这是我得到的例外:

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.

我也检查过这个问题,但找不到答案: Exception of type 'Microsoft.WindowsAzure.StorageClient.StorageClientException' was thrown

这是代码:

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

    private CloudQueue rawMessageQueue;
    var QueueExists = rawMessageQueue.Exists();

1 个答案:

答案 0 :(得分:1)

只需更新以下dll:

  1. Microsoft.WindowsAzure.Storage.dll

  2. Microsoft.WindowsAzure.Configuration.dll

  3. enter image description here

    然后重建。