c# - nservicebus 严重错误异常代码 : 0x80131623

标签 c# nservicebus nservicebus5

启动 NServicebus.Host.exe 时出现以下错误

The runtime has encountered a fatal error. The address of the error was at 0x9124e4c7, on thread 0x2094. The error code is 0x80131623. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.

当我通过 Visual Studio 或直接通过命令提示符启动项目时,我遇到了这个问题,但我很难解决它崩溃的原因 - 非常感谢您的建议。

最佳答案

感谢@hanspassant,我能够找到问题所在:

我的 ServiceControl 队列不存在,一旦创建问题就消失了。

这是最终出现在 Windows 应用程序日志中的错误:

Service cannot be started. System.ArgumentException: Queue must be transactional if you configure your endpoint to be transactional (Particular.ServiceControl@HFORTE-2). at NServiceBus.Transports.Msmq.MsmqDequeueStrategy.Init(Address address, TransactionSettings settings, Func2 tryProcessMessage, Action2

问题最终与服务控制有关。我认为 Particular 修复了 NServicebus 内部的错误,按照此链接 FatalExecutionEngineError FailFast 但不在 ServiceControl 插件中。

关于c# - nservicebus 严重错误异常代码 : 0x80131623,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29123899/

相关文章:

log4net - NServiceBus 和 Log4Net 外部配置文件

c# - 如何检查一个类的所有公共(public)方法都是虚拟的

c# - 尝试配置 NServiceBus 以使用 NHibernate 持久性时出现异常

azure - 是否可以配置 NServiceBus 端点(在 Azure 传输上)以接受简单字符串作为输入?

c# - 如何在 NSubstitute 中伪造一个对象并忽略其方法的内部实现?

c# - 从后端加载日期数据设置引导日期选择器以正确的格式

c# - 根据需要验证正文中的不可为空属性 - AspNetCore 3.1

c# - 如何启动 AnyCPU 编译的 COM 服务器

NServiceBus Send() 与 SendLocal() 和异常