Reputation: 11
I am trying to connect to my Azure Service Bus from my Worker Role using AMQP. However, I get a time-out exception. When I use a network sniffer I see that it is trying to communicate to the Azure Service Bus using port 5671. But it's not sending an ACK message, it just times-out. I try this from Visual Studio 2015 with the Azure Emulator.
When I try exactly the same, from the same computer and network interface, but then from a normal command prompt application (so no Azure Worker Role and/or Emulator), it works. My application is able to send an ACK package to Azure and receives a Server Hello from Azure.
Is the Azure Emulator or the Worker Role blocking some ports by default? Why is it working from my command prompt application but not from my Azure Worker Role? I use the same connectionstring and the following code:
TopicClient client = TopicClient.CreateFromConnectionString(_connectionstring, _queueName);
client.Send(new BrokeredMessage(msg));
Upvotes: 0
Views: 190
Reputation: 11
I finally found the issue. In the solution which uses the Azure Emulator, I included the following package:
<package id="WindowsAzure.ServiceBus" version="2.5.1.0" targetFramework="net451" />
In my console application I used the following package:
<package id="WindowsAzure.ServiceBus" version="3.0.9" targetFramework="net46" />
So changing my Azure solution to version 3.0.9 solved the problem. Seems like Microsoft introduced a breaking change in version 3.x.
Upvotes: 1
Reputation: 1539
In order of likelihood, I'd guess the issue is that:
Upvotes: 0