Note that there are some explanatory texts on larger screens.

plurals
  1. POMessages not forwarded to error queue when exception is thrown in handler (it works on my machine)
    primarykey
    data
    text
    <p>We are using NServicebus 4.0.5 with sql server(sql server 2012) as transport. When the handler throws an exception, NSB does not retry or move the message to the error queue. Successful messages make it to the audit queue but the failed/errored ones don't! . Interestingly, all this works on our local machines(windows 7 ,sql server localdb) but not on windows server 2012 (sql server 2012). Here is the config info on the subscriber:</p> <pre><code>&lt;add name="NServiceBus/Transport" connectionString="Data Source=xxx;Initial Catalog=NServiceBus;Integrated Security=SSPI;Enlist=false;" /&gt; &lt;add name="NServiceBus/Persistence" connectionString="Data Source=xxx;Initial Catalog=NServiceBus;Integrated Security=SSPI;Enlist=false;" /&gt; &lt;MessageForwardingInCaseOfFaultConfig ErrorQueue="error" /&gt; &lt;UnicastBusConfig ForwardReceivedMessagesTo="audit"&gt; &lt;MessageEndpointMappings&gt; &lt;add Assembly="Services.Section.Messages" Endpoint= "Services.ACL.Worker" /&gt; &lt;/MessageEndpointMappings&gt; &lt;/UnicastBusConfig&gt; </code></pre> <p>And in code it is configured as follows:</p> <pre><code>public class EndpointConfig : IConfigureThisEndpoint, AsA_Server, IWantCustomInitialization { public void Init() { IContainer container = ContainerInstanceProvider. GetContainerInstance(); Configure .Transactions.Enable(); Configure.With() .AutofacBuilder(container) .UseTransport&lt;SqlServer&gt;() .Log4Net() //.Serialization.Json() .UseNHibernateSubscriptionPersister() .UseNHibernateTimeoutPersister() .MessageForwardingInCaseOfFault() .RijndaelEncryptionService() .DefiningCommandsAs(type =&gt; type.Namespace != null &amp;&amp;type .Namespace.EndsWith("Commands")) .DefiningEventsAs(type =&gt; type.Namespace != null &amp;&amp;type .Namespace.EndsWith("Events")) .UnicastBus(); } } </code></pre> <p>Any ideas on how to fix this?</p> <p>here is the log info (there is a lot there, search for error to see the relevant parts)</p> <p><a href="https://gist.github.com/ranji/7378249" rel="nofollow">https://gist.github.com/ranji/7378249</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload