I am trying to connect to RabbitMQ with EasyNetQ. RabbitMQ is on remote VM.
_rabbitBus = RabbitHutch.CreateBus(
string.Format(\"host={0};virtualhost={1}\
As Mike suggested i had this and then checked the permissions. "guest" user can only connect via localhost (see RabbitMQ Access Control.) Try adding a user with permissions using the management interface and then connect as below
var _bus = RabbitHutch.CreateBus(string.Format("host={0};virtualhost={1};username={2};password={3}",
_hostSettings.Host, _hostSettings.VHost, _hostSettings.UserName, _hostSettings.Password));