2012-08-19 102 views
1

遇到錯誤升級到Azure的SDK 1.7,但仍TransientFaultHandling.RetryPolicy爲Lookinf 1.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(Func 1 FUNC)557 `

我我的SDK升級到1.7 ,爲什麼TransientFaultHandling仍然在尋找1.1,儘管我有1.7版本的StorageClient。

回答

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> 
+1

其實,現在有(如8月21日)的瞬態的新版本CodePlex和Nuget上的故障處理應用程序塊(「TOPAZ」)。它支持Azure SDK v1.7,併爲Service Bus和雲存儲增加了一些關鍵錯誤修復。 – 2012-08-24 21:04:11

+0

以下是發行說明的網址:http://entlib.codeplex.com/wikipage?title=TopazAug2012UpdateReleaseNotes&version=8 – 2012-08-24 21:04:37