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

Nservicebus hosted as a service shutdown immediately after starting

I have written a service to host NServiceBus and for some reason NServiceBus is shutting down almost immediately after starting the service. If I run the executable manually everything works exactly as it should but as a service it decides to…
dmoore1181
  • 1,793
  • 1
  • 25
  • 57
0
votes
1 answer

NServiceBus: Delay processing of all incoming messages

I have a situation where a console app (let's call it the Builder) and an NServiceBus endpoint (let's call it the Feeder) are both writing to the same data store. The Feeder processes EntityChanged messages as they come in, whereas the Builder goes…
Richiban
  • 5,569
  • 3
  • 30
  • 42
0
votes
1 answer

Why is not my windows service stopped on fatal error?

As we have moved from NSB5 to NSB6 we also looked into removing NServiceBus.Host and instead use Topshelf. When we did, our service no longer shows that it has stopped when we receive a critical failure. As an example, when we have trouble to reach…
Per
  • 1,393
  • 16
  • 28
0
votes
1 answer

NServiceBus 4 Unsubscribe event on production

I started working with NServiceBus 4 and there was a need to need to unsubscribe an event for an end point on production. In production, for subscribe assembly scanning and config file using . So the question is how to unsubscribe? Is there an easy…
duongthaiha
  • 855
  • 6
  • 17
0
votes
1 answer

StateMachineException crossed an AppDomain boundary

My project is a bus that uses NServiceBus. Recently I started getting an error whenever I start debugging in Visual Studio. The full error is: StateMachineException crossed an AppDomain boundary Exception occurred in…
levininja
  • 3,118
  • 5
  • 26
  • 41
0
votes
1 answer

How to NServiceBus Publish() in Fixed interval

Is it possble to configure the Publisher to run in fixed interval, say every hour? In the example I downloaded from the NServiceBus web site, the publisher publishes whenever a user hit enter key. So, instead of that, I would like to publish a…
Tony
  • 3,319
  • 12
  • 56
  • 71
0
votes
1 answer

NServiceBus delay retries

We need to be able to specify a delay in retrying failed messages. NServiceBus retries more or less instantly up to n times (as configured) before moving the message to error queue. What I need to be able to do is for a given message type specify…
Ben Fidge
  • 203
  • 3
  • 10
0
votes
1 answer

How do I manually purge the error logs for NServiceBus

I recently inherited a software project that uses Particulars NServiceBus. After doing some reading I found that error log could be viewed through the ServicePulse. Going in I see about 2 years worth of accumulation. I would like to purge those,…
Kixoka
  • 989
  • 4
  • 15
  • 37
0
votes
1 answer

NServiceBus transfering message from pub queue to sub queue

I am getting a little confused with NServiceBus. It seems like a lot of examples that I see, they always use publish() and subscribe(). What I am trying to do is that I have a publisher that polling from its queue and distributes the message to…
Tony
  • 3,319
  • 12
  • 56
  • 71
0
votes
1 answer

Write to a file in NServiceBus

Here is what I am trying to accomplish by using NServiceBus. I have a publisher and subscriber. The publisher publishes a message from its queue to the subscriber. Then, the subscriber takes the message and writes to a file. The file will be an…
Tony
  • 3,319
  • 12
  • 56
  • 71
0
votes
1 answer

pub/sub nservicebus beginner

I am trying to get a simple NServiceBus pub/sub working. Here is what I am trying to do. I am trying to read a message from msmq, and pub publishes the messages to sub, and the sub will insert the messages to sub's queue. (right now, there are all…
Tony
  • 3,319
  • 12
  • 56
  • 71
0
votes
1 answer

NServicebus & NHibernate caching issue

I'm trying to track down what appears to be a caching issue and I can't seem to find any answers. What I have is: A series of 5 message handlers to process an 'order' from our ASP.NET MVC site. I should note, the behavior noted below was seen when…
DevSolo
  • 667
  • 4
  • 9
0
votes
1 answer

NServiceBus Issue On Updating version

I was trying to update an application that uses NServiceBus 2.0.0.1145 to 2.5.0.1446 , but when i started the application i am getting the following exception FATAL NServiceBus.Host.Internal.GenericHost [(null)] -…
Ajai
  • 11
  • 2
0
votes
1 answer

Unresolved DI in aspnet core with lightinject

Apologies for the long text! I'm trying to build a message listener for RabbitMQ in aspnet core 2.1. As soon as I post a message, I get this error in the log: 2018-09-29 12:35:35.459 INFO NServiceBus.RecoverabilityExecutor Immediate Retry is going…
Arun
  • 1,015
  • 1
  • 11
  • 26
0
votes
1 answer

NServiceBus upgrading major version strategy

I've been reading about the implications of upgrading NServiceBus to a new major version, for example, from version 6.x.x to 7.x.x. At ParticularDocs site, the Upgrade Guides says this: Thanks to the wire-compatibility guarantees, it is not…
Alpha75
  • 2,140
  • 1
  • 26
  • 49