6

我是 Azure 服务总线的新手。

我正在尝试将消息添加到 Azure 服务总线队列,如下所示

var message = new BrokeredMessage() { Label = inputFileEntity.FileName };                
message.MessageId = new Guid().ToString();
message.Properties.Add("FilePath", inputFileEntity.FilePath);

// submit the file for injector
QueueConnector.InputFileQueueClient.Send(message);

我收到如下消息通信异常

Channel Open did not complete within the specified timeout of 00:01:00

当我初始化 QueueClient 时,我什至将操作超时值配置为 10 分钟,仍然是同样的问题

 var namespaceManager = CreateNamespaceManager();
 namespaceManager.Settings.OperationTimeout = new TimeSpan(0, 10, 0);

在我出错的地方,任何方向或指示都会有很大帮助。

4

1 回答 1

5

这通常表明存在网络问题,因为防火墙可能会阻止所需 TCP 端口上的出站通信。您还可以将连接模式设置为 http 并通过端口 80 发送流量。

ServiceBusEnvironment.SystemConnectivity.Mode = ConnectivityMode.Http;
于 2014-02-28T03:02:57.067 回答