You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When configuring an endpoint as a SendOnly endpoint, in version 5.0.x the user didn't have to define the MessageForwardingInCaseOfFaultConfig configuration. However in 5.1.0 this is now required and the endpoint fails to start unless it is specified.
Steps to repro
Create a console application and install-package NServiceBus (version 5.0.0)
Upgrade this endpoint to 5.1.0 and notice the configuration error
Workaround
Either add the config section, MessageForwardingInCaseOfFaultConfig to app.config or if you don't want to change the app.config, please add the following initialization via code.
using NServiceBus.Config;using NServiceBus.Config.ConfigurationSource;classConfigErrorQueue:IProvideConfiguration<MessageForwardingInCaseOfFaultConfig>{public MessageForwardingInCaseOfFaultConfig GetConfiguration(){returnnew MessageForwardingInCaseOfFaultConfig
{ErrorQueue="error"};}}
Hi,
I upgraded from NSB 5.0.1 to 5.1.0 today and now in my WCF web service I'm getting an error stating: Faults forwarding requires an error queue to be specified. Please add a 'MessageForwardingInCaseOfFaultConfig' section to your app.config
This wasn't required on 5.0.1. This is the entire message:
System.Configuration.ConfigurationErrorsException occurred
HResult=-2146232062
Message=Faults forwarding requires an error queue to be specified. Please add a 'MessageForwardingInCaseOfFaultConfig' section to your app.config
or configure a global one using the powershell command: Set-NServiceBusLocalMachineSettings -ErrorQueue {address of error queue}
Source=NServiceBus.Core
BareMessage=Faults forwarding requires an error queue to be specified. Please add a 'MessageForwardingInCaseOfFaultConfig' section to your app.config
or configure a global one using the powershell command: Set-NServiceBusLocalMachineSettings -ErrorQueue {address of error queue}
Line=0
StackTrace:
at NServiceBus.Faults.ErrorQueueSettings.GetConfiguredErrorQueue(ReadOnlySettings settings) in c:\BuildAgent\work\1b05a2fea6e4cd32\src\NServiceBus.Core\Faults\ErrorQueueSettings.cs:line 42
InnerException:
I don't have any issue with adding the configuration to the web.config but I normally prefer to avoid making web.config changes if I can
To reproduce:
Create WCF Service Application, install NSB version 5.0.1(along with NServiceBus.Log4Net and its dependent log4net package)
Add Global.asax
Create ISendOnlyBus Bus within Application_Start
Call Bus.Send within WCF service class <-- builds and runs without issue
Then...
Upgrade to NSB 5.1.0 (the latest at the time of writing)
Observe the error above
The text was updated successfully, but these errors were encountered:
@outofcoolnames - I was able to reproduce this. I've updated the issue description and I have added a workaround to provide config via code, until we fix this.
SimonCropp
changed the title
MessageForwardingInCaseOfFaultConfig now required
MessageForwardingInCaseOfFaultConfig should not be required for sendonly
Nov 4, 2014
When configuring an endpoint as a SendOnly endpoint, in version 5.0.x the user didn't have to define the
MessageForwardingInCaseOfFaultConfig
configuration. However in 5.1.0 this is now required and the endpoint fails to start unless it is specified.Steps to repro
Workaround
Either add the config section,
MessageForwardingInCaseOfFaultConfig
to app.config or if you don't want to change the app.config, please add the following initialization via code.Hi,
I upgraded from NSB 5.0.1 to 5.1.0 today and now in my WCF web service I'm getting an error stating: Faults forwarding requires an error queue to be specified. Please add a 'MessageForwardingInCaseOfFaultConfig' section to your app.config
This wasn't required on 5.0.1. This is the entire message:
System.Configuration.ConfigurationErrorsException occurred
HResult=-2146232062
Message=Faults forwarding requires an error queue to be specified. Please add a 'MessageForwardingInCaseOfFaultConfig' section to your app.config
or configure a global one using the powershell command: Set-NServiceBusLocalMachineSettings -ErrorQueue {address of error queue}
Source=NServiceBus.Core
BareMessage=Faults forwarding requires an error queue to be specified. Please add a 'MessageForwardingInCaseOfFaultConfig' section to your app.config
or configure a global one using the powershell command: Set-NServiceBusLocalMachineSettings -ErrorQueue {address of error queue}
Line=0
StackTrace:
at NServiceBus.Faults.ErrorQueueSettings.GetConfiguredErrorQueue(ReadOnlySettings settings) in c:\BuildAgent\work\1b05a2fea6e4cd32\src\NServiceBus.Core\Faults\ErrorQueueSettings.cs:line 42
InnerException:
I don't have any issue with adding the configuration to the web.config but I normally prefer to avoid making web.config changes if I can
To reproduce:
Create WCF Service Application, install NSB version 5.0.1(along with NServiceBus.Log4Net and its dependent log4net package)
Add Global.asax
Create ISendOnlyBus Bus within Application_Start
Call Bus.Send within WCF service class <-- builds and runs without issue
Then...
Upgrade to NSB 5.1.0 (the latest at the time of writing)
Observe the error above
The text was updated successfully, but these errors were encountered: