I'm new with RabbitMQ, and i have a problem with then client 4.0.0
If i create RabbitMQ Console apps with Visual Studio 2015 (with latest updates, under Windows 10) using .net 4.5.2 and the 4.0.0 client all ok.
The RabbitMQ server is a Ubuntu LTS 16.05 instance on Azure.
Trying to create a Windows Form app, for example the code in this page
https://simonwdixon.wordpress.com/2011/05/08/getting-started-with-rabbitmq-in-dotnet/ ,if i use the 3.6.5 version (the last one before 4.0,0) using .NET 4.5.2 still ok.
if i update via Nuget the RabbitMQ client to the 4.0.0. version of RabbitMQ the code hangs at the at the .CreateConnection method, for example
protected IModel Model;
protected IConnection Connection;
protected string QueueName;
public Producer(string hostName, string queueName)
{
QueueName = queueName;
var connectionFactory = new ConnectionFactory { HostName = hostName, UserName = "mquser", Password = "somepwd" };
Connection = connectionFactory.CreateConnection();
Model = Connection.CreateModel();
Model.QueueDeclare(QueueName, false, false, false, null);
}
with the above code at the .CreateConnection the app hangs: no exceptions, no sign of life after minutes, no more visible app interface.
Could someone explain which is the problem ?