我正在尝试使用队列,这是我得到的例外:
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();
答案 0 :(得分:1)
只需更新以下dll:
Microsoft.WindowsAzure.Storage.dll
Microsoft.WindowsAzure.Configuration.dll
然后重建。