1

出现错误

Could not load file or assembly 'Microsoft.WindowsAzure.StorageClient, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Microsoft.Practices.EnterpriseLibrary.WindowsAzure.TransientFaultHandling.AzureStorage.StorageTransientErrorDetectionStrategy.CheckIsTransient(Exception ex) +0 Microsoft.Practices.EnterpriseLibrary.WindowsAzure.TransientFaultHandling.AzureStorage.StorageTransientErrorDetectionStrategy.IsTransient(Exception ex) +21 Microsoft.Practices.TransientFaultHandling.RetryPolicy.ExecuteAction(Func1 功能)+557 `

我将我的 SDK 升级到 1.7,为什么 TransientFaultHandling 仍然在寻找 1.1,尽管我有 1.7 版本的 StorageClient。

4

1 回答 1

3

目前没有支持 1.7 SDK 的 TOPAZ 版本。您需要在 app.config/web.config 中添加绑定重定向来解决此问题,直到发布新版本:

  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.WindowsAzure.StorageClient" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="1.1.0.0" newVersion="1.7.0.0" />
      </dependentAssembly>
    </assemblyBinding>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.ServiceBus" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="1.6.0.0" newVersion="1.7.0.0" />
      </dependentAssembly>
    </assemblyBinding>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.ApplicationServer.Caching.Core" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="101.0.0.0" newVersion="1.0.4655.0" />
      </dependentAssembly>
    </assemblyBinding> 
  </runtime>
于 2012-08-19T12:06:58.763 回答