nservicebus4

The operation is not valid for the state of the transaction when trying to make Bus.SendLocal in Handler (local Azure worker)

折月煮酒 提交于 2019-12-25 02:29:27
问题 I have a next code: class ProcessHandler : IHandleMessages<StartProcess> { public IBus Bus { get; set; } public void Handle(StartProcess message) { //some long living process (over 3 min) Bus.SendLocal(new SameMessage()); //get error here } } error message: The operation is not valid for the state of the transaction. stack trace: *at System.Transactions.TransactionState.EnlistVolatile(InternalTransaction tx, IEnlistmentNotification enlistmentNotification, EnlistmentOptions enlistmentOptions,

NServiceBus Configuration with Custom Container

怎甘沉沦 提交于 2019-12-24 20:36:24
问题 I am trying to re-use the service registrations in an assembly that I use through a few services in my solution. I follow the example listed from the NServiceBus website to implement the solution. When following that, unless I add the IWantCustomInitialization interface, my Init method (and IoC container implementation) appears not to function. When I have that interface implemented, I get exceptions (listed in SO questions here and here). I can't seem to get it to work that there are no

NServiceBus error handling

感情迁移 提交于 2019-12-24 01:44:28
问题 I understand the let NServiceBus handles the error and let it retry or use the second level of retries this are valid for some unknown error within the applicaiton. For example let say it the transactionId == null then i dont just want to throw the exception and let NService bus handles it as i know this never gonna pass with any extra attempts. For know exception scenarios what is the best this do? I am using saga which call the what different endpoints (A,B,C,D). how do you handle the above

timeout index not present on ravendb

ぃ、小莉子 提交于 2019-12-24 00:38:37
问题 tl;dr: my web api service is running slow, added logging logging is giving me errors about not being able to find timeouts didn't see the ravendb database for the webapi project on the server, but dev machines have it raven is running and running on 8080 tried reinstalling nservicebus via platform installer(downloaded from nservicebus yesterday) still have the same issue i think i either messed up the deployment or I need to do a clean install somehow What do I need to do in order for the

NServiceBus not creating queues automatically (MSMQ)

[亡魂溺海] 提交于 2019-12-12 12:25:16
问题 I'm doing the examples from the NServiceBus website (http://docs.particular.net/samples/step-by-step/) and when I run in Visual Studio everything works and the queues are created automatically (even if I delete them and re-run the solution than they get created automatically). The dev machine runs Windows 8. I have an emulated Windows 2008 RC2 - when I take my solution bin folder to the server machine and try to run NServiceBus.Host.exe it eventually crashes and the reason is: "The queue does