简体   繁体   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

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 我也检查了这个问题,但无法找到我的答案: 抛出“Microsoft.WindowsAzure.StorageClient.StorageClientException”类型的异常

this is the code: 这是代码:

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

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

Just update the following dlls: 只需更新以下dll:

  1. Microsoft.WindowsAzure.Storage.dll Microsoft.WindowsAzure.Storage.dll

  2. Microsoft.WindowsAzure.Configuration.dll Microsoft.WindowsAzure.Configuration.dll

在此输入图像描述

Then rebuild . 然后重建。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Microsoft.WindowsAzure.Storage.StorageException:无法连接到远程服务器 - Microsoft.WindowsAzure.Storage.StorageException: Unable to connect to the remote server 在引用Microsoft.WindowsAzure.Storage.DLL时生成错误 - Build error on referencing Microsoft.WindowsAzure.Storage.DLL Microsoft.WindowsAzure.Storage.StorageException:远程服务器返回错误:(404)Not Found - Microsoft.WindowsAzure.Storage.StorageException: The remote server returned an error: (404) Not Found Microsoft.WindowsAzure.Storage.StorageException 无法加载文件或程序集 'Newtonsoft.Json,版本 = 6.0.0.0, - Microsoft.WindowsAzure.Storage.StorageException Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Azure Worker角色和Blob存储C#-Microsoft.WindowsAzure.Storage.StorageException:远程服务器返回错误:(400)错误的请求 - Azure Worker role and blob storage c# - Microsoft.WindowsAzure.Storage.StorageException: The remote server returned an error: (400) Bad Request FileNotFoundException,找不到Microsoft.WindowsAzure.Storage.dll v5.0.2 - FileNotFoundException, Could not find Microsoft.WindowsAzure.Storage.dll v5.0.2 “Microsoft.WindowsAzure.Storage.CloudStorageAccount”的类型初始值设定项在Xamarin.forms中引发了异常错误 - The type initializer for 'Microsoft.WindowsAzure.Storage.CloudStorageAccount' threw an exception error in Xamarin.forms Azure function,缺少 Microsoft.WindowsAzure.Storage - Azure function, Microsoft.WindowsAzure.Storage missing OperationContext 使用情况 (Microsoft.WindowsAzure.Storage) - OperationContext usage (Microsoft.WindowsAzure.Storage) 用于 Azure Blob 管理的 Azure.Storage.Blobs 与 Microsoft.WindowsAzure.Storage.Blob dll - Azure.Storage.Blobs vs Microsoft.WindowsAzure.Storage.Blob dll for Azure Blob management
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM