Question

As per I know Azure Service bus uses port 9350, 9353 etc. to send messages. In my organization because of firewall policy we can't open these ports. So whenever I try to send messages to my queue in Azure I get error saying

No DNS entries exist for host mycloudsevice.servicebus.windows.net".

Is there a way I can send these over port 80/443, as they are always open?

Let me know if any examples or code changes I can do.

Was it helpful?

Solution

You can force the Service Bus library to use HTTP by declaring the following:

ServiceBusEnvironment.SystemConnectivity.Mode = ConnectivityMode.Http;

However it looks like you have a DNS problem not a TCP port problem, you might want to check that you have entered your service bus namespace correctly.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top