Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

How can I check service bus relay exist or not

$
0
0

I try using "RelayExistsAsync()" of NamespaceManager. But , I received the following error message.

"System.ArgumentException(400)
Cannot send message because the service endpoint hosted at the specified address uses a netTcpRelayBinding that cannot be accessed over HTTP"

My code is as

string connectionString = CloudConfigurationManager.GetSetting("Microsoft.ServiceBus.ConnectionString");
var namespaceManager = NamespaceManager.CreateFromConnectionString(connectionString);

// Check relay already exist or not
bool res = await namespaceManager.RelayExistsAsync(relayName);

my connection string is

"Endpoint=sb://ServiceNameSpace.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=SecretKey"

Need help
Thanks in advance.. :)


Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>