![](/img/trans.png)
[英]Microsoft.WindowsAzure.Storage.StorageException: Unable to connect to the remote server
[英]A first chance exception of type 'Microsoft.WindowsAzure.Storage.StorageException' occurred in Microsoft.WindowsAzure.Storage.dll
我正在嘗試使用隊列,這是我得到的例外:
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.
我也檢查了這個問題,但無法找到我的答案: 拋出“Microsoft.WindowsAzure.StorageClient.StorageClientException”類型的異常
這是代碼:
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
然后重建。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.