gpt4 book ai didi

尝试获取类型为 Autoscaler 的实例时发生 Azure WASABi 激活错误, key ""

转载 作者:行者123 更新时间:2023-12-02 08:10:14 31 4
gpt4 key购买 nike

尝试获取 this 时出现此错误Azure Autoscale 演示项目与适用于 Windows Azure 的 Enterprise Library 5.0 Integration Pack 中的 WASABi 一起工作。正确遵循所有指令时抛出的错误是:

Activation error occured while trying to get instance of type Autoscaler, key "" at Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance(Typ e serviceType, String key) in c:\Home\Chris\Projects\CommonServiceLocator\main\M icrosoft.Practices.ServiceLocation\ServiceLocatorImplBase.cs:line 57
at Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstanceTSe rvice in c:\Home\Chris\Projects\CommonServiceLocator\main\Microsoft.Practices .ServiceLocation\ServiceLocatorImplBase.cs:line 90 at PB_WASABi_autoscaler.Program.Main(String[] args) in c:\Users\daniel\Documents\Visual Studio 2012\Projects\PB-WASABi-autoscaler\PB-WASABi-autoscaler\Progr am.cs:line 13

使用 Windows Azure 1.7 库。

最佳答案

教程(和其他在线资源)主要使用 Azure 1.6 SDK。

It works when in the console application there is a reference to WindowsAzure.StorageClient.dll file from Azure SDK 1.6. Under Azure SDK 1.7 environment there is this error message: Activation error occured while trying to get instance of type Autoscaler, key "". In the error details we find: 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).

解决方案:

A binding redirect in your app.config file will solve the issue:

  <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>
</runtime>

来源:here

关于尝试获取类型为 Autoscaler 的实例时发生 Azure WASABi 激活错误, key "",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13161599/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com