gpt4 book ai didi

msmq - NServiceBus 无法启动 - MessageForwardinginCaseofFaultConfig 丢失

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

您好,我正在尝试开始使用 NServiceBus 进行开发,但是我在第一步就失败了。

我已从命令行运行 RunMeFirst.bat/i,并且所有依赖项均正确。

c:\Users\xxxxx\Desktop\NServiceBus.3.0.0>.\binaries\NServiceBus.Host.exe /installInfrastructure
Running infrastructure installers and exiting (ignoring other command line parameters if exist).
Starting installation of PerformanceCounters
Category NServiceBus already exist, going to delete first
Installation of PerformanceCounters successful.
Checking if MSMQ is installed.
MSMQ is installed.
Checking that only needed components are active.
Installation is good.
Checking that DTC is configured correctly.
DTC is configured correctly.
DTC is good.

但是,当我尝试创建一个简单的程序并从中调用 NServiceBus.exe 时,它​​失败并出现以下错误

2012-08-02 10:19:48,922 [1] WARN  MessageForwardingInCaseOfFault [(null)] <(null)> - Could not find configuration sectio
n 'MessageForwardingInCaseOfFaultConfig'. Going to try to find the error queue defined in 'MsmqTransportConfig'.
2012-08-02 10:19:48,951 [1] FATAL NServiceBus.Hosting.GenericHost [(null)] <(null)> - System.Configuration.Configuration
ErrorsException: 'MessageForwardingInCaseOfFaultConfig' configuration section is missing and could not find backup confi
guration section 'MsmqTransportConfig' in order to locate the error queue.
at NServiceBus.ConfigureFaultsForwarder.MessageForwardingInCaseOfFault(Configure config) in d:\BuildAgent-03\work\nsb
.masterbuild0\src\impl\faults\NServiceBus.Faults.Forwarder.Config\ConfigureFaultsForwarder.cs:line 44
at NServiceBus.Hosting.Windows.Profiles.Handlers.ProductionProfileHandler.NServiceBus.Hosting.Profiles.IHandleProfile
.ProfileActivated() in d:\BuildAgent-03\work\nsb.masterbuild0\src\hosting\NServiceBus.Hosting.Windows\Profiles\Handlers\
ProductionProfileHandler.cs:line 19

任何解决此问题的帮助将不胜感激!

谢谢

最佳答案

当消息失败时,NSB 将重试该消息,然后将其转发到另一个队列,以便它可以继续处理。您需要将以下内容添加到您的配置文件中:

<section name="MessageForwardingInCaseOfFaultConfig" type="NServiceBus.Config.MessageForwardingInCaseOfFaultConfig, NServiceBus.Core" />

<MessageForwardingInCaseOfFaultConfig ErrorQueue="nservicebus_error" />

关于msmq - NServiceBus 无法启动 - MessageForwardinginCaseofFaultConfig 丢失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11774526/

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