[英]Error Calling InitializeCache on WindowsAzure Storage Account
I have the following snippet being called on on application start: 我在应用程序启动时调用了以下代码段:
var driveCache = RoleEnvironment.GetLocalResource("imageslive");
CloudDrive.InitializeCache(driveCache.RootPath, driveCache.MaximumSizeInMegabytes);
This has been working for year or so. 这已经工作了大约一年了。 I have just upload a new version of the site and am now getting the following error: 我刚刚上传了该网站的新版本,现在出现以下错误:
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)
This works when running from within VS with the emulator so presumably is something about the update. 当在VS中使用仿真器运行时,此方法起作用,因此大概与更新有关。
Does anyone have any pointers about how I might go about getting more information? 有人对我如何获取更多信息有任何指示吗? I cannot see any way of getting more information, let alone what the sudden cause of the error is. 我看不到任何获得更多信息的方法,更不用说错误的突然原因是什么。
This has been found to be a side effect of a security update in the latest Guest OS update. 在最新的Guest OS更新中,发现这是安全更新的副作用。 The temporary solution is to modify your Cloud Service to use the March Guest OS (201503 versions --- 2.37, 3.25, or 4.18) instead of the Automatic Guest OS version. 临时解决方案是将Cloud Service修改为使用March Guest OS(201503版本--- 2.37、3.25或4.18),而不使用Automatic Guest OS版本。 You can find instructions for manually configuring the Guest OS version at https://msdn.microsoft.com/en-us/library/azure/ff729420.aspx . 您可以在https://msdn.microsoft.com/zh-cn/library/azure/ff729420.aspx上找到有关手动配置Guest OS版本的说明。 We are investigating the issue in order to fix the root cause within the Guest OS itself so that you can continue using automatic Guest OS updates. 我们正在调查该问题,以便解决Guest OS本身的根本原因,以便您可以继续使用自动Guest OS更新。
Also please note that the CloudDrive feature was never released out of beta. 另请注意,CloudDrive功能从未在beta版之外发布。 With the upcoming storage service version retirement in December ( http://azure.microsoft.com/blog/2014/08/04/microsoft-azure-storage-service-version-removal/ ) the CloudDrive will no longer function. 随着即将在12月停用的存储服务版本( http://azure.microsoft.com/blog/2014/08/04/microsoft-azure-storage-service-version-removal/),CloudDrive将不再起作用。 You should begin making plans to migrate to Azure Files. 您应该开始计划迁移到Azure文件。 http://blogs.msdn.com/b/windowsazurestorage/archive/2014/07/24/migrating-data-to-microsoft-azure-files.aspx has information on how to migrate data. http://blogs.msdn.com/b/windowsazurestorage/archive/2014/07/24/migrating-data-to-microsoft-azure-files.aspx包含有关如何迁移数据的信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.