paolosalvatori / ServiceBusExplorer

The Service Bus Explorer allows users to connect to a Service Bus namespace and administer messaging entities in an easy manner. The tool provides advanced features like import/export functionality or the ability to test topic, queues, subscriptions, relay services, notification hubs and events hubs.
MIT License
2.01k stars 585 forks source link

Notification Hub device registrations #691

Open fbua opened 1 year ago

fbua commented 1 year ago

I encountered an issue while attempting to view the devices registrered to notification hub.

If I connect directly to the namespace in which the hub belongs I can obtain the registrations list. But if I reconnect to namespace using a saved connection, the retriving function fails, returning an authroization error.

ErikMogensen commented 1 year ago

Strange, I am able to open a saved Notifications hub namespace.

Maybe there is some assembly mismatch due to upgrading the binaries for the tool, but keeping the old servicebusexplorer.exe.config. servicebusexplorer.exe.config contains references to assemblies which will confuse the tool if they aren't updated.

Another alternative could be that you are using an old version of ServiceBusExplorer.

Maybe something got wrong when saving the string or someone regenerated the keys. To test that, open the configuration file and copy the connection string and paste it in the Connection String textbox. image and see if that works.

fbua commented 1 year ago

I use the last version of the application. I can reopen a saved namespace. The error occurs only when I try to retrieve the registered devices list clicking on Registration button. If I connect to namespace inserting the connection string copied from Azure portal I can retrieve this list, but if I save the connection stirng and reconnect to namespace, the retrieving operationg returns an authorization error as can view in the image. The only difference I found on app config file is the parameter TransportType=NetMessaging appended to it.

Senza nome