i have a demo working fine with the oAuth TokenProvider. I've changed it to use SharedSecretTokenProvider.
TokenProvider oTokenProvider = TokenProvider.CreateSharedSecretTokenProvider("owner", sharedKey); // connect to the namespace, with the authenticated user token namespaceManager = NamespaceManager.CreateFromConnectionString(connBuilder.ToString()); namespaceManager.Settings.TokenProvider = oTokenProvider;
No errors so far, but when I access the namespace, eg
if (namespaceManager.TopicExists(TopicName))
then I get this error :
System.UnauthorizedAccessException was unhandled HResult=-2147024891 Message=uri provided my.fully.qualified.domain does not match Service Bus domain: servicebus.windows.net. Source=Microsoft.ServiceBus
Why is it doing anything with servicebus.windows.net? Or is this a bug in the Windows Server Service Bus 1.1 Preview?