我正在尝试使用队列,这是我得到的例外:
A first chance exception of type 'Microsoft.WindowsAzure.Storage.StorageException' occurred in Microsoft.WindowsAzure.Storage.dll Additional @R_918_4045@ion: 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
然后重建.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。