You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all,
Using the c# code below to connect to rabbit with a virtual host configured, I the following error is thrown:
None of the specified endpoints were reachable
OperationInterruptedException: The AMQP operation was interrupted: AMQP close-reason, initiated by Peer, code=530, text='NOT_ALLOWED - vhost dataplatformtsunit not found', classId=10, methodId=40
If I comment the line factory.VirtualHost = "d***************unit"; the app is able to connect.
Using the GUI or Queue Explorer, I'm also able to connect successfully and create queues using the virtual host:
I asked the user with access to the rabbitMQ server to send me a screenshot of the users permissions:
Can you please help me to identify anything wrong with either the permissions or code?
Thanks for all the help
Versions:
RabbitMQ 3.13.2
Erlang 26.2.5
RabbitMQ.Client 6.8.1 (nuget used in the .NET app)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
Using the c# code below to connect to rabbit with a virtual host configured, I the following error is thrown:
None of the specified endpoints were reachable
OperationInterruptedException: The AMQP operation was interrupted: AMQP close-reason, initiated by Peer, code=530, text='NOT_ALLOWED - vhost dataplatformtsunit not found', classId=10, methodId=40
If I comment the line
factory.VirtualHost = "d***************unit";
the app is able to connect.Using the GUI or Queue Explorer, I'm also able to connect successfully and create queues using the virtual host:
I asked the user with access to the rabbitMQ server to send me a screenshot of the users permissions:
Can you please help me to identify anything wrong with either the permissions or code?
Thanks for all the help
Versions:
RabbitMQ 3.13.2
Erlang 26.2.5
RabbitMQ.Client 6.8.1 (nuget used in the .NET app)
C# code to connect to that rabbitMQ server:
`
using RabbitMQ.Client;
string host = "rabbitmq.apps.dev";
string usr = "n3nLMSdYVrrn"; // virtual host
string pwd = "QSBuk7oXma"; // virtual host
int port = 30449;
ConnectionFactory factory = new ConnectionFactory();
factory.AutomaticRecoveryEnabled = true;
factory.Port = port;
factory.HostName = host;
factory.VirtualHost = "d***************unit";
factory.UserName = usr;
factory.Password = pwd;
IConnection connection = factory.CreateConnection();
Console.WriteLine("Is connection to RabbitMQ open? " + connection.IsOpen);`
Beta Was this translation helpful? Give feedback.
All reactions