gpt4 book ai didi

c# - Microsoft.WindowsAzure.Storage.dll 中发生了类型 'Microsoft.WindowsAzure.Storage.StorageException' 的第一次机会异常

转载 作者:太空狗 更新时间:2023-10-29 23:45:32 26 4
gpt4 key购买 nike

我正在尝试使用队列,这是我遇到的异常:

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

最佳答案

只需更新以下 dll:

  1. Microsoft.WindowsAzure.Storage.dll

  2. Microsoft.WindowsAzure.Configuration.dll

enter image description here

然后重建。

关于c# - Microsoft.WindowsAzure.Storage.dll 中发生了类型 'Microsoft.WindowsAzure.Storage.StorageException' 的第一次机会异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25087162/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com