简体   繁体   English

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

[英]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.

相关问题 在引用Microsoft.WindowsAzure.Storage.DLL时生成错误 - Build error on referencing Microsoft.WindowsAzure.Storage.DLL Microsoft.WindowsAzure.Storage.StorageException:远程服务器返回错误:(404)Not Found - Microsoft.WindowsAzure.Storage.StorageException: The remote server returned an error: (404) Not Found “Microsoft.WindowsAzure.Storage.CloudStorageAccount”的类型初始值设定项在Xamarin.forms中引发了异常错误 - The type initializer for 'Microsoft.WindowsAzure.Storage.CloudStorageAccount' threw an exception error in Xamarin.forms Microsoft.WindowsAzure.Storage:服务器遇到内部错误但未告知根本原因 - Microsoft.WindowsAzure.Storage: Server encountered an internal error without telling the root cause Azure Worker角色和Blob存储C#-Microsoft.WindowsAzure.Storage.StorageException:远程服务器返回错误:(400)错误的请求 - Azure Worker role and blob storage c# - Microsoft.WindowsAzure.Storage.StorageException: The remote server returned an error: (400) Bad Request ExecuteQuery WindowsAzure.Storage 5.0.3没有扩展方法 - ExecuteQuery WindowsAzure.Storage 5.0.3 no extension method 如何使用WindowsAzure.Storage.DataMovement? - How to use WindowsAzure.Storage.DataMovement? OperationContext 使用情况 (Microsoft.WindowsAzure.Storage) - OperationContext usage (Microsoft.WindowsAzure.Storage) WindowsAzure.Storage没有使用.Net Core 1.0 - WindowsAzure.Storage on not working on .Net Core 1.0 WindowsAzure.Storage使用C#mono - WindowsAzure.Storage using C# mono
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM