0

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.

4

1 回答 1

2

您可以通过声明以下内容来强制服务总线库使用 HTTP:

ServiceBusEnvironment.SystemConnectivity.Mode = ConnectivityMode.Http;

但是,您似乎遇到了 DNS 问题而不是 TCP 端口问题,您可能需要检查您是否正确输入了服务总线命名空间。

于 2013-11-21T21:53:47.693 回答