加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c# – Microsoft.WindowsAzure.Storage.dll中出现’Microsoft.Wi

发布时间:2020-12-15 22:06:31 所属栏目:百科 来源:网络整理
导读:我正在尝试使用队列,这是我得到的例外: A first chance exception of type 'Microsoft.WindowsAzure.Storage.StorageException' occurred in Microsoft.WindowsAzure.Storage.dllAdditional information: The remote server returned an error: (400) Bad R
我正在尝试使用队列,这是我得到的例外:

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:

> Microsoft.WindowsAzure.Storage.dll
> Microsoft.WindowsAzure.Configuration.dll

然后重建.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读