所以我昨天将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/