Windows azure,错误为Microsoft.WindowsAzure.Plugins.Caching.FileStore

Ser*_*gey 4 azure azure-configuration

在我将Azure SDK更新到1.7版本并尝试在Web角色上发布我的更改后,它显示了一个错误:

Windows Azure could not find the resource Microsoft.WindowsAzure.Plugins.Caching.FileStore in the service package.
Run Code Online (Sandbox Code Playgroud)

如何解决这个错误?

Avk*_*han 5

我相信在基于SDK 1.7的应用程序中,您在CSDEF中具有以下设置:

<LocalResources>
  <LocalStorage name="Microsoft.WindowsAzure.Plugins.Caching.FileStore" sizeInMB="1000" cleanOnRoleRecycle="false" />
</LocalResources>
Run Code Online (Sandbox Code Playgroud)

基于此错误,我可以看到您正在更新以前基于SDK 1.6的部署,该部署没有上述设置以及您收到此错误的原因.

由于您的配置已更改,因此更新失败.作为此问题的解决方法,您可以首先对Staging插槽执行全新的部署,然后使用生产SWAP VIP进行更新.