gpt4 book ai didi

.net - 带有RabbitMQ.Client.dll异常的Microsoft.Diagnostics.Tracing.EventSource

转载 作者:行者123 更新时间:2023-12-03 09:03:51 24 4
gpt4 key购买 nike

为什么会出现以下错误,该如何解决?

An unhandled exception of type 'System.IO.FileLoadException' occurred in RabbitMQ.Client.dll Could not load file or assembly 'Microsoft.Diagnostics.Tracing.EventSource, Version=1.1.28.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)



更新

在下面的评论部分中的评论之后,我试图在 中找到 Microsoft.Diagnostics.Tracing.EventSource ,Visual Studio 2019 。我为此使用了快捷方式 Ctrl + Shift + T,但仍然找不到该文件。文件可以放在哪里?

enter image description here

最佳答案

您并不孤单-这是RabbitMQ .NET客户端的known issue,也在rabbitmq-users mailing list上进行了讨论。
该修补程序将随客户端的下一个主要版本(v6)一起提供。在此之前,解决方法可能是降级nuget软件包
Microsoft.Diagnostics.Tracing.EventSource.Redist
到特定的版本1.1.28.0。 (此问题的discussion中建议了这一点。)here说明了如何降级-请注意,在第二步中,您需要选择上述特定版本,而不是最新版本。
我的团队最近遇到了相同的问题,目前我们正在测试此变通办法。
更新(2020-02-03):我们已经成功测试了解决方法;该应用程序不再崩溃。
我还可以对Nair的评论做一个简短的解释。在安装了合适的旧版本nuget软件包之后,您可以在解决方案资源管理器中通过扩展项目的引用并查看引用的属性来验证您是否确实具有1.1.28.0版本:
The Properties Window for Microsoft.Diagnostics.Tracing.EventSource.Redist DLL in the Solution Explorer
屏幕快照根据需要显示了旧版本1.1.28.0。当然,您可以通过这种方式随时查找所引用的DLL的版本。
更新(2020/07/13):rabbitmq .NET客户端的版本6已发布。在我们的团队中,我们仍然无法更新,因为我们需要等待NServiceBus包装器的对应版本6,但这将是released as well within the next few weeks

关于.net - 带有RabbitMQ.Client.dll异常的Microsoft.Diagnostics.Tracing.EventSource,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58932304/

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