azure - 更新到 Azure SDK 2.0 后无法加载 'Microsoft.WindowsAzure.ServiceRuntime' 程序集

标签 azure visual-studio-2012

所以我昨天将Azure SDK更新到2.0版本并升级了我的项目。本地一切正常,所以我发布到Azure。惊喜:由于以下异常,辅助角色未启动

Could not load file or assembly 'Microsoft.WindowsAzure.ServiceRuntime, Version=1.0.0.0

当我更新到1.8时,发生了类似的事情,但我不记得确切的解决方案。我尝试删除并重新添加程序集、引用系统中的 DLL、更新 NuGet 包...一切都会产生相同的结果。

谁有办法解决这个问题吗? 谢谢!

最佳答案

我还没有迁移到 2.0,但这是有可能的。

当我上次升级 1.7 => 1.8 时,我必须将以下条目添加到我的 web.config 中,因为其他外部项目仍在引用旧的运行时

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

关于azure - 更新到 Azure SDK 2.0 后无法加载 'Microsoft.WindowsAzure.ServiceRuntime' 程序集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16512335/

相关文章:

c# - Azure Function 输出与 Azure.Cosmos.Table 绑定(bind)

azure - 扩展 Azure SQL 弹性池存储时是否会出现停机?

node.js - Azure函数: NodeJS - HTTP Response Renders as XML Rather than HTTP Response

wcf - HTTP 无法注册 URL http ://+:10001/. 您的进程没有访问此命名空间的权限

c++ - 如何在 C++ 中正确组织和实现 SFML 音频?

file - 从代码获取 Azure VM 上可用的驱动器

Azure应用程序服务未将Gitlab容器注册表配置选择为私有(private)存储库

visual-studio-2010 - 在Visual Studio Express 2013中创建解决方案文件夹

visual-studio-2010 - Windows 8 上的 Visual Studio 2008/2010 - 问题?

c++ - Visual Studio 11 图形调试器的目标应用程序要求