Azure Service Bus - MessageCommunication Exception Channel Open timeout

I am new to Azure Service Bus.

I am trying to add a message to the Azure Service Bus Queue as shown below

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);

I get a MessageCommunication exception as below

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

When I initialize QueueClient, I even set the work timeout value to 10 minutes, another problem

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

If I am mistaken, any direction or pointers will be very helpful.

+4
source share
1 answer

Typically, this indicates a network problem, because it may be necessary to block outgoing communications with a firewall on TCP ports. You can also set the connection mode to http and send traffic through port 80.

ServiceBusEnvironment.SystemConnectivity.Mode = ConnectivityMode.Http;
+4

Source: https://habr.com/ru/post/1528940/


All Articles