在 WindowsAzure 存储帐户上调用 InitializeCache 时出错

Error Calling InitializeCache on WindowsAzure Storage Account

我在应用程序启动时调用了以下代码段:

var driveCache = RoleEnvironment.GetLocalResource("imageslive");
CloudDrive.InitializeCache(driveCache.RootPath, driveCache.MaximumSizeInMegabytes);

这已经工作了一年左右。我刚刚上传了网站的新版本,现在收到以下错误:

Exception of type 'Microsoft.WindowsAzure.CloudDrive.Interop.InteropCloudDriveException' was thrown.
at ThrowIfFailed(UInt32 hr)
at Microsoft.WindowsAzure.StorageClient.CloudDrive.InitializeCache(String cachePath, Int32 totalCacheSize)

Unknown Error HRESULT=80070103
at Microsoft.WindowsAzure.StorageClient.CloudDrive.InitializeCache(String cachePath, Int32 totalCacheSize)
at Site.Global.Application_Start(Object sender, EventArgs e)

这在 运行 从 VS 中使用模拟器时有效,所以大概是关于更新的。

有没有人对我如何获取更多信息有任何指示?我看不到任何获取更多信息的方法,更不用说错误的突然原因了。

已发现这是最新 Guest OS 更新中安全更新的副作用。临时解决方案是修改您的云服务以使用 March Guest OS(201503 版本 --- 2.37、3.25 或 4.18)而不是 Automatic Guest OS 版本。您可以在 https://msdn.microsoft.com/en-us/library/azure/ff729420.aspx 找到手动配置 Guest OS 版本的说明。我们正在调查此问题,以解决来宾 OS 本身的根本原因,以便您可以继续使用自动来宾 OS 更新。

另请注意,CloudDrive 功能从未发布过测试版。随着即将在 12 月停用的存储服务版本(http://azure.microsoft.com/blog/2014/08/04/microsoft-azure-storage-service-version-removal/) the CloudDrive will no longer function. You should begin making plans to migrate to Azure Files. http://blogs.msdn.com/b/windowsazurestorage/archive/2014/07/24/migrating-data-to-microsoft-azure-files.aspx 有关于如何迁移数据的信息。