加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

nservicebus – “无法加载文件或程序集”/“或其依赖项之一.该

发布时间:2020-12-14 04:53:49 所属栏目:百科 来源:网络整理
导读:我有一个使用SharpSVN dll和NServicebus dll的c#应用程序,它编译得很好但是当它正在执行时(在初始化总线的时候)它会抛出以下错误 Could not load file or assembly ‘file:///C:RepositoriesRepohooksSharpSvn-DB44-20-Win32.dll’ or one of its depend
我有一个使用SharpSVN dll和NServicebus dll的c#应用程序,它编译得很好但是当它正在执行时(在初始化总线的时候)它会抛出以下错误

Could not load file or assembly ‘file:///C:RepositoriesRepohooksSharpSvn-DB44-20-Win32.dll’ or one of its dependencies. The module was expected to contain an assembly manifest.

我该如何解决上述问题.

预先感谢
Susanta

解决方法

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

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

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

希望这可以帮助!

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读