1

将 azure sdk 更新到 1.7 后,我的用于 azure 应用程序的 windows phone 工具包现在在 Visual Studio 中停止工作并显示异常。我的 windows phone 7 应用程序最好在 ASPProviders 上运行,当它在模拟器中运行时,页面返回错误。

查看我在下面看到的异常:无法加载文件或程序集'Microsoft.WindowsAzure.StorageClient,Version=1.1.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35'或其依赖项之一。找到的程序集的清单定义与程序集引用不匹配。(来自 HRESULT 的异常:0x80131040)

关于如何解决此错误的任何想法?

4

1 回答 1

1

我认为问题在于 Windows Phone 7.1 工具包基于 Windows Azure SDK 1.6,当您安装了 Windows Azure SDK 1.7 时,Microsoft.WindowsAzure.StorageClient.dll 的更新版本会导致此问题。

要解决此问题,您可以在应用程序中设置绑定重定向到较新版本的 Windows Azure 存储客户端 DLL,如下所示:

<dependentAssembly>
 <assemblyIdentity name="Microsoft.WindowsAzure.StorageClient" publicKeyToken="31bf3856ad364e35"/>
 <bindingRedirect oldVersion="1.0.0.0-1.7.0.0" newVersion="1.7.0.0" />
</dependentAssembly>

这应该可以解决您的问题。

于 2012-07-19T16:57:11.557 回答