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
0 answers

MSMQ Outbound Queue Stuck After System Recovery

I have an outbound queue on a server with messages in a processed but "unacknowledged state". New messages in entering the queue are suspended in the same manner. The issue started happening when the sending server was recovered from a backup. For a…
Matt
  • 1
0
votes
1 answer

How to improve the performance of my NServiceBus Saga under load

I have a very simple Saga built with NSB7 using SQL Transport and NHibernate persistence. The Saga listens on a queue and for each message received runs through 4 handlers. These are called in a sequential order, with 2 handlers run in parallel and…
0
votes
2 answers

Nservice Bus handler trigger issue

My project is upgrading to use nservice bus version 7. One of the handler is getting executed concurrently. After analysis found that there is a behavior code written and getting executed after handler election. Then next the handler will get…
0
votes
1 answer

NserviceBus MSMQ inputqueue with IP addresses

I am evaluating nservicebus and samples work on local server. app.config files in sample suggest to use queue@pcname for msmq configuration. My question is can IP addresses be used in circumstances where there is no DNS server? BR Niladri
NiladriBose
  • 1,849
  • 2
  • 16
  • 31
0
votes
1 answer

ERROR NServiceBus.Transports.Msmq.MsmqDequeueStrategy - Error in receiving messages

Event Viewer on my workstation have the following error log: ERROR NServiceBus.Transports.Msmq.MsmqDequeueStrategy [(null)] - Error in receiving messages. System.Transactions.TransactionAbortedException: The transaction has aborted. --->…
0
votes
0 answers

NServiceBus's custom logging implementation with AsyncLocal throwing exceptions

We have a custom logging implementation for NServiceBus that adds properties to logs; it does this by storing it in a IDictionary object that is managed by an AsyncLocal class. When we add: NServiceBus.Logging.LogManager.Use(); To…
0
votes
1 answer

Nservicebus hello world in process hosting!

I am trying out nservicebus as a solution instead of using WCF MSMQ binding. I have tried to get a in process hello world working by mofigying the full duplex sample. I have got it to the point that I am sending message from the client and the…
NiladriBose
  • 1,849
  • 2
  • 16
  • 31
0
votes
1 answer

NServiceBus having both async and sync handlers

I am upgrading NServiceBus from an older version to version 7. Half of the code was already upgraded by an earlier developer. The project is using a mediator pattern and there are lots of handlers in one subscriber project. Most of the handlers are…
0
votes
1 answer

Registering Dependency with in NServiceBus with Autofac after upgrade

I am having a problem working out how to register dependencies in my NServiceBus endpoint. I am using NServiceBus 7.2 and Autofac 5.0 and NServiceBus.Autofac 7.0.0 and can't find any examples that use these versions. I am using Asp.Net Core 3. My…
Adam M
  • 1
  • 1
0
votes
1 answer

NServiceBus: Disable retry when exception is encountered

We are using NServiceBus 6.4, and we've already disabled retries by setting the delayed and immediate to 0. However, when an exception is caught, are retry is still triggered. How can we completely disable retry even when there's an exception? …
Bryan
  • 53
  • 3
0
votes
1 answer

Is the AddNServiceBus() method callable on an IServiceCollection object?

I'm trying to setup NSB in a .NET Core Web Api project to send commands to a .NET Core Endpoint project containing handlers to receive messages. Code so far to register NSB: public void ConfigureServices(IServiceCollection services) { …
0
votes
2 answers

Why does Nservicebus not use WCF?

I see that NServiceBus uses MSMQ as its transport. Why doesn't it use WCF with MSMQ as the underlying transport?
Jason
  • 1
0
votes
1 answer

NServiceBus with azure storage queues will process messages without headers indefinitely

I am experimenting with a new NServiceBus project using Azure Storage Queues for message transport and JSON serialization. I have noticed that when I run a message through the queue that is missing NServiceBus headers, for example an empty JSON…
Beau
  • 5
  • 1
0
votes
1 answer

NServiceBus Routing not working based on Assembly for generic types

I have a scenario where I am sending a generic Command like: AddRequest. When I configure routing using Assembly, it doesn't work (error: no destination specified): routeSettings.RouteToEndpoint(assembly, "App2.Endpoint"); However the command gets…
Brij
  • 11,731
  • 22
  • 78
  • 116
0
votes
1 answer

NServiceBus, subscriber stop receiving messages after a period of time

Using version 2.5.0.1446, my server will receive messages for about 5 - 10 minutes, after which, it will no longer receive, however this is only occurring on one environment a Windows Server 2008 R2 server. It has been running continuously on other…
J Pullar
  • 1,915
  • 2
  • 18
  • 30