作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
您好,我正在尝试开始使用 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/
我已设置 NServiceBus 将失败的消息转发到由 ServiceControl 监控的错误队列。 这是我的配置: 当我发送一条无法处理的消息时,它会被发送到 DLQ。但是,我在 error
您好,我正在尝试开始使用 NServiceBus 进行开发,但是我在第一步就失败了。 我已从命令行运行 RunMeFirst.bat/i,并且所有依赖项均正确。 c:\Users\xxxxx\Desk
我是一名优秀的程序员,十分优秀!