0

从下图中可以看出,我在 Worker Role 中编写了一段非常标准的代码,以从 Azure Storage 中的队列获取消息,但它抛出了这个 IOException 并带有说明指定注册表项不存在的文本。

    CloudQueueMessage message = queue.GetMessage(TimeSpan.FromSeconds(30));

是导致问题的代码,有时它可以正常工作,有时则不能。很奇怪。

错误信息

4

1 回答 1

0

Have you set your Local Config file Connection String to use UseDevelopmentStorage=true

From a quick google, this error can crop up as well if you have a mis-match between the Microsoft.WindowsAzure.StorageClient (v1.7) and the Microsoft.WindowsAzure.Storage (v2.0) libraries referenced in your application.

于 2013-09-17T16:12:30.757 回答