© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
9 replies
M B V R K

✅ MassTransit with RabbitMQ Exception

Hi friends,
I'm working on a project using
Microservices
Microservices
, in this project I have
ExpenseService
ExpenseService
( which divided to 4 projects Domain, Infraastructure, Application and API ), and
AuthService
AuthService
.

AuthService is used for authentication and user management, the
ExpenseService
ExpenseService
needs to store some info about a
User
User
in its own database, so for this when a user is created in
AuthService
AuthService
the AuthService publish a
UserCreatedMessage
UserCreatedMessage
/Event to
RabbitMQ
RabbitMQ
using
MassTransit
MassTransit
, the
ExpenseService
ExpenseService
is a subscriber in the
Queue
Queue
if that message.

The issue :
When I start the both services everything going fine but when I create a user using the
AuthService
AuthService
API the User is created and stored in the AuthService database, after that a
UserCreatedMessage
UserCreatedMessage
/Event should be published, but instead I get an Exception in the API that said :
The entity name must not be null or empty

and in
VS Code
VS Code
debugging console I get this exception
Exception thrown: 'MassTransit.RabbitMqAddressException' in MassTransit.RabbitMqTransport.dll
Exception thrown: 'MassTransit.RabbitMqAddressException' in System.Private.CoreLib.dll

This means that the message is not published because of an issue in
MassTransit
MassTransit
Configs I did.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Is it Possible to Consume a Queue Message by Multiple Consumers ( RabbitMQ & MassTransit ) ?
C#CC# / help
3y ago
❔ Hello, MassTransit Problem
C#CC# / help
3y ago
MassTransit + EventHub with own message format
C#CC# / help
13mo ago
❔ [RabbitMQ][RabbitMq.Client] Low consuming rate.
C#CC# / help
3y ago