【问题标题】:Windows azure wasabiWindows 天蓝色芥末
【发布时间】:2012-11-02 22:49:20
【问题描述】:

当我创建了一个使用芥末“自动缩放”功能的 Windows azure 项目时,我遇到了以下异常,我还配置了 app.config 文件。:

例外

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

自动缩放器 objAutoScaler= EnterpriseLibraryContainer.Current.GetInstance(); // 这里我得到了异常

有什么帮助吗?

【问题讨论】:

    标签: c# azure-storage azure-worker-roles autoscaling wasabi


    【解决方案1】:

    我不知道您是否还有这个问题,但是您的项目中是否引用了这些程序集?

    Microsoft.WindowsAzure.StorageClient

    Microsoft.WindowsAzure.ServiceRuntime

    此外,如果您使用的是 1.7 版的 Azure SDK,则需要在 app.config 中添加此部分:

    <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.WindowsAzure.ServiceRuntime" publicKeyToken="31BF3856AD364E35" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-1.7.0.0" newVersion="1.7.0.0"/>
      </dependentAssembly>
    </assemblyBinding>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.WindowsAzure.StorageClient" publicKeyToken="31BF3856AD364E35" culture="neutral"/>
        <bindingRedirect oldVersion="0.0.0.0-1.7.0.0" newVersion="1.7.0.0"/>
      </dependentAssembly>
    </assemblyBinding>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-17
      • 2014-08-21
      • 1970-01-01
      • 2015-05-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多