gpt4 book ai didi

nservicebus - "Could not load file or assembly"/"or one of its dependencies. The module was expected to contain an assembly manifest."

转载 作者:行者123 更新时间:2023-12-04 02:40:46 24 4
gpt4 key购买 nike

我有一个使用 SharpSVN dll 和 NServicebus dll 的 c# 应用程序,它编译得很好但是当它执行时(在初始化总线时)它抛出以下错误

Could not load file or assembly 'file:///C:\Repositories\Repo\hooks\SharpSvn-DB44-20-Win32.dll' or one of its dependencies. The module was expected to contain an assembly manifest.



我该如何解决上述问题。

预先感谢
苏珊塔

最佳答案

通过使用显式的程序集列表配置 NSB 来从 NServiceBus 程序集扫描中排除sharpsvn dll:

Configure.With("包含消息处理程序的程序集列表")...

如果您使用 Saga 功能,请确保在列表中包含 NServiceBus.core.dll。

希望这可以帮助!

关于nservicebus - "Could not load file or assembly"/"or one of its dependencies. The module was expected to contain an assembly manifest.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2005441/

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