簡體   English   中英

Microsoft.WindowsAzure.Storage.dll中出現“Microsoft.WindowsAzure.Storage.StorageException”類型的第一次機會異常

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

我正在嘗試使用隊列,這是我得到的例外:

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.

我也檢查了這個問題,但無法找到我的答案: 拋出“Microsoft.WindowsAzure.StorageClient.StorageClientException”類型的異常

這是代碼:

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

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

只需更新以下dll:

  1. Microsoft.WindowsAzure.Storage.dll

  2. Microsoft.WindowsAzure.Configuration.dll

在此輸入圖像描述

然后重建。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM