gpt4 book ai didi

azure - StackExchange.Redis 2.0.513 包中缺少程序集绑定(bind)重定向

转载 作者:行者123 更新时间:2023-12-03 06:36:07 25 4
gpt4 key购买 nike

尝试在 .Net 4.7 的云服务中使用最新的 Nuget 包 StackExchange.Redis 时,出现以下异常

System.InvalidOperationException: The assembly for System.Buffers and System.IO.Pipelines could not be loaded; this usually means a missing assembly binding redirect - try checking this, and adding any that are missing; note that it is not always possible to add this redirects - for example 'azure functions v1'; it looks like you may need to use 'azure functions v2' for that - sorry, but that's out of our control at Pipelines.Sockets.Unofficial.Helpers.g__Throw|5_0(String msg) at Pipelines.Sockets.Unofficial.Helpers.AssertDependencies() at StackExchange.Redis.ConnectionMultiplexer.Connect(String configuration, TextWriter log) at ...

这来自云服务中的辅助角色,它引用了引用此包的类库。另外,我无法在本地重现此内容。仅在部署到虚拟机/云服务后才会发生。

我错过了什么?

最佳答案

添加程序集重定向:

<dependentAssembly>
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" />
<bindingRedirect oldVersion="4.0.2.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>

找到详细信息here .

关于azure - StackExchange.Redis 2.0.513 包中缺少程序集绑定(bind)重定向,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53429474/

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