Closed martinbures97 closed 4 years ago
Hi, Martin!
I actually have no idea what how I help you. Seems that something wrong with configuration in the appsettings.json
file. Have you tried a "manual" way of configuring a RabbitMQ client via RabbitMqClientOptions
?
var configuration = new RabbitMqClientOptions
{
HostName = "hostname",
Port = 5432,
UserName = "username",
Password = "pwd"
};
services.AddRabbitMqClient(configuration);
And by the way, are you sure that you have valid port and hostname?
An exception IOException: connection. start was never received, likely due to a network timeout
usually shows when something wrong with configuration options.
Best regards, Antony
If RabbitMqClientOptions
won't help you then something is really wrong.
I would really appreciate if you could give me a code example (not screenshots, actual code) which I can use to reproduce the problem.
Closing due to inactivity.
Fell free to re-open it again if you need my help further.
Hi Antony,
im trying to remake my rabbit mq app into .NET Core 3.1 console app using DI. Here im sending you pic of my code which works.
I tried your tutorial from github -> setting up appsettings, registering rabbitmq client into DI etc. Here is my remaked code.
But when i try to resolve IQueueService
This error occurs 'connection.start was never received, likely due to a network timeout'
My appsettings are set to default and my host name/username/pwd is same as in old code.
Please can you help me with this error ? Thanks