问题
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.
回答1:
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.
来源:https://stackoverflow.com/questions/20132003/how-to-send-messages-to-azure-service-bus-over-port-80