0
votes

I'm trying to run the Azure Service Sample (MessagingWithQueue) which I downloaded from http://www.microsoft.com/download/en/details.aspx?id=17691.

However, I've been getting this error message:

Could not connect to net.tcp://xxxx.servicebus.windows.net:9354/. The connection attempt lasted for a time span of 00:00:00.0615234. TCP error code 10061: No connection could be made because the target machine actively refused it.

I'm running the application from within company network. Does service bus requires some firewall port to be opened?

Thank you.

1
Most likely port 9354 should be allowed from within your network.Denis Ivin

1 Answers

2
votes

The port 9354 need to be open for outbound connections on your firewall, if you plan to use Azure Service Bus messaging.

If you can't or don't want to open the port, consider using the REST instead. Here a post where I convert the lab to be RESTful: http://frankysnotes.com/2011/12/messaging-with-queue-in-azure-service.html

I hope this will help you.