启动 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, Func
2 tryProcessMessage, Action
2
问题最终与服务控制有关。我认为 Particular 修复了 NServicebus 内部的错误,按照此链接 FatalExecutionEngineError FailFast 但不在 ServiceControl 插件中。
关于c# - nservicebus 严重错误异常代码 : 0x80131623,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29123899/