Questions tagged [nservicebus]

NServiceBus is a highly pluggable, reliable, open source Enterprise Service Bus built on .NET.

The most popular Service Bus for .NET

Simple and easy publish/subscribe communication over any transport, on premise and in the cloud. Get enterprise-grade scalability and reliability for your workflows and integrations without any messy XML configuration - just pure-code bliss. Runs on MSMQ, RabbitMQ, Azure, and more – optimally configured out of the box so you can focus on your business logic.

Resources

Installation

NServiceBus can most easily be installed through its NuGet package.

Install-Package NServiceBus
2232 questions
0
votes
1 answer

How to fix DbContext has been disposed for an async scenario?

We have upgraded our application from NserviceBus v5 to v6 and after that we run into major problem, most of the time receiving the following error. The operation cannot be completed because the DbContext has been disposed. It was not obvious…
Per
  • 1,393
  • 16
  • 28
0
votes
1 answer

How do i wireup NServiceBus' SqlSaga in a test scenario?

https://docs.particular.net/nservicebus/testing/ has a very neat example of how to test a simple Saga. Unfortunately it does not explain, how to do the same with a SqlSaga - ie. a Saga with persistence of state to a database. Given this saga: public…
Carsten Gehling
  • 1,218
  • 1
  • 13
  • 31
0
votes
1 answer

System.ArgumentException: The path is not of a legal form when invoking NServiceBus via Hangfire task

I get the below error when I try to invoke NServiceBus/Rabbit MQ via a Hangfire Task I have tried updating the .NET Framework version from 4.5.2 to 4.6.1 Not sure what is it that I'm doing wrong here? I keep getting this error However, when I run…
user280868
  • 133
  • 8
0
votes
1 answer

NServiceBus Reverts back to XmlSerilizer for no reason

I am having issues with NSB reverting to the Xml Serializer for no apparent reason which obvisouly causes an error when trying to deserialize the message. Below is an excerpt from the log, as you can see some come through from the same source as…
Al.
  • 167
  • 2
  • 11
0
votes
1 answer

NServiceBus: Timeout gets handled by multiple Sagas

We currently have a NServiceBus 5 system, which contains two recurring Sagas. Since they act as dispatcher to periodically pull multiple sorts of data from an external system, we're using the Timeouts to trigger this: We created a generic and empty…
Matthias Müller
  • 3,336
  • 3
  • 33
  • 65
0
votes
1 answer

NServiceBus6 delayed recovery not delaying

Without getting to terribly detailed about the problem we are trying to solve I have the need to make NServiceBus do 1 of 5 things, but I'm currently just trying to get the first one to work. That is that given a reply back from a web API call we…
Robert Snyder
  • 2,399
  • 4
  • 33
  • 65
0
votes
1 answer

NServiceBus: Messages as Singletons

We currently have a Singleton Saga (implemented like here: https://lostechies.com/jimmybogard/2015/04/17/saga-implementation-patterns-singleton/) which is resending a message after a specific timeout. This works fine, since the respective Handler…
Matthias Müller
  • 3,336
  • 3
  • 33
  • 65
0
votes
1 answer

nservicebus calling a Saga from within another Saga

I'm new to NServiceBus and trying to find the best way to model a scenario which uses compensating transactions. For example, say I have a typical BookHotel scenario: In the happy case, the messaging flow would proceed as follows:…
Michael Kang
  • 52,003
  • 16
  • 103
  • 135
0
votes
1 answer

NServiceBus - How to make sure SagaData is in sync between the Worker Servers?

In NServiceBus 4.6.5 messages go to the Worker servers using the Round-Robin algorithm. I have some data in the Sagas to detect business messages out of sync. That data is stored into an Oracle Database. How to make sure all servers share the same…
Miguel Domingos
  • 345
  • 1
  • 3
  • 17
0
votes
1 answer

NServiceBus Compatibility

I'm trying to to send a Command from a .net 3.5 client machine to a .net 4 server machine. What came to my mind is to install NSB 2 compiled with .net 3.5 on the client and NSB 2 compiled with .net 4 on the server. Do you know if it would work…
Lei Shi
  • 101
  • 4
0
votes
1 answer

Does an NServiceBus error mean that messages are not processed in the right order?

Say I have a banking app (I am not developing a banking app, however I believe it gets my point across as it is used in a lot of Event Sourcing examples), which generates the following messages: 1) Apply £110 withdrawal to account A 2) Apply £70…
w0051977
  • 15,099
  • 32
  • 152
  • 329
0
votes
1 answer

How would you export NServiceBus's NHibernate Saga mappings?

We use the NServiceBus generated NHibernatePersistence mappings for our Sagas. I'd like to take a look at these mappings to help diagnose a problem and potentially serve as a starting point for some tweaks that we may need to make to these mappings.…
carmbrester
  • 910
  • 1
  • 8
  • 21
0
votes
1 answer

NServiceBus 6.4.3 configured to MSMQ fails on startup

I am experimenting with using NServiceBus with MSMQ as transport. A very simple example: static void Main(string[] args) { var endpointConfiguration = new EndpointConfiguration("myappqueue"); …
Carsten Gehling
  • 1,218
  • 1
  • 13
  • 31
0
votes
0 answers

Call method in controller w/o losing dependency injection

I am working on a service fabric application. Specifically, I am adding a CommandInstanceHandler which listens to messages from the service bus.. From the CommandInstanceHandler, I want to call a method in the Controller. However, it's not as…
0
votes
0 answers

Nservicebus Message stuck and not being processed or Handle

We have two ASP.net web applications integrated with nservicebus with following configuration App 1 is running nuservicebus v4 and App 2 is running nservicebus v3. When I send the message from app 1 to app 2 it works fine and get processed. While…
1 2 3
99
100