2012-08-02 2 views
4

안녕하세요. NServiceBus를 사용하여 개발하고 있지만 첫 번째 단계에서 실패하고 있습니다.NServiceBus가 시작되지 못함 - MessageForwardinginCaseofFaultConfig가 누락되었습니다.

명령 줄에서 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 invoce,이 훨씬 이해 될 것이다 해결하기 위해 다음과 같은 오류

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 

어떤 도움 실패! 이 처리를 계속할 수 있도록 메시지가 실패

감사

+0

을 수행 할 수 있습니다 보낸 사람 끝점 app.config 파일의 모든 내용을 게시 하시겠습니까? – Riccardo

답변

9

는 NSB는 다른 큐 앞으로이 다음 메시지를 다시 시도합니다. 당신은 당신의 설정 파일에 다음을 추가해야합니다 : 그냥 아담의 대답에 몇 가지 세부 사항을 추가 할 수

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

<MessageForwardingInCaseOfFaultConfig ErrorQueue="nservicebus_error" /> 
+0

고마워,이게 해결 됐어! – dopplesoldner

4

, 설정 파일은 Web.config의는 다음과 같이 부모 태그는 다음과 같습니다

<?xml version="1.0" encoding="utf-8"?> 

<configuration> 
    <configSections> 
     <section name="MessageForwardingInCaseOfFaultConfig" type="NServiceBus.Config.MessageForwardingInCaseOfFaultConfig, NServiceBus.Core" /> 
     ... 
    </configSections> 
    <MessageForwardingInCaseOfFaultConfig ErrorQueue="error" /> 
    ... 
</configuration> 
관련 문제