ServiceBusExplorer: Failed to retrieve EventHub entities. Exception: Microsoft.ServiceBus.Messaging.MessagingException

On Azure NotificationHub Namespace, I have given “Manage, Send, Listen” permission in RootManageSharedAccessKey access policy. This is used in ServiceBus Explorer Connection string. I am using Microsoft CSP account. I tried all permission options, but don’t know where access is missing?

And when I tried to get Registrations for “All”, I get exception as “<22:07:27> InnerException: The remote server returned an error: (401) Unauthorized.”


After connecting to Azure Notification Hub (namespace), i see following exception. (just after connection)

<22:15:32> The file C:\Users\Kavita\Downloads\ServiceBusExplorer-4.1.112\ServiceBusExplorer.exe.Config is used for the configuration settings. <22:15:42> The application is now connected to the sb://shahu18notificationhubns.servicebus.windows.net/ service bus namespace. <22:15:42> MessagingFactory successfully created <22:16:19> The notification hub shahu18notificationhub has been successfully retrieved. <22:16:34> Failed to retrieve EventHub entities. Exception: Microsoft.ServiceBus.Messaging.MessagingException: The remote server returned an error: (500) Internal Server Error. <Fault xmlns="http://schemas.microsoft.com/ws/2005/05/envelope/none"><Value>Receiver</Value><Subcode><Value xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher">a:InternalServiceFault</Value></Subcode><Reason><Text xml:lang="en-US">The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.</Text></Reason></Fault> —> System.Net.WebException: The remote server returned an error: (500) Internal Server Error.

          at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)

          at Microsoft.ServiceBus.Messaging.ServiceBusResourceOperations.GetAllAsyncResult.<>c.<GetAsyncSteps>b__31_1(GetAllAsyncResult thisPtr, IAsyncResult r)

          at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)

          --- End of inner exception stack trace ---

          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

          at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)

          at Microsoft.ServiceBus.NamespaceManager.EndGetEventHubs(IAsyncResult result)

          at Microsoft.Azure.ServiceBusExplorer.Forms.MainForm.GetEntities(EntityType entityType) in C:\projects\servicebusexplorer\src\ServiceBusExplorer\Forms\MainForm.cs:line 4326

<22:16:34> Failed to retrieve Relay entities. Exception: System.TimeoutException: The operation has timed out.

          at Microsoft.Azure.ServiceBusExplorer.ServiceBusHelper.GetRelays() in C:\projects\servicebusexplorer\src\ServiceBusExplorer\Helpers\ServiceBusHelper.cs:line 1144

          at Microsoft.Azure.ServiceBusExplorer.Forms.MainForm.GetEntities(EntityType entityType) in C:\projects\servicebusexplorer\src\ServiceBusExplorer\Forms\MainForm.cs:line 4404

<22:16:34> Failed to retrieve Service Bus queues. Exception: System.TimeoutException: The operation has timed out.

          at Microsoft.Azure.ServiceBusExplorer.ServiceBusHelper.GetQueues(String filter) in C:\projects\servicebusexplorer\src\ServiceBusExplorer\Helpers\ServiceBusHelper.cs:line 1901

          at Microsoft.Azure.ServiceBusExplorer.Forms.MainForm.GetEntities(EntityType entityType) in C:\projects\servicebusexplorer\src\ServiceBusExplorer\Forms\MainForm.cs:line 4441

<22:16:34> Failed to retrieve Service Bus topics. Exception: System.TimeoutException: The operation has timed out.

          at Microsoft.Azure.ServiceBusExplorer.ServiceBusHelper.GetTopics(String filter) in C:\projects\servicebusexplorer\src\ServiceBusExplorer\Helpers\ServiceBusHelper.cs:line 2056

          at Microsoft.Azure.ServiceBusExplorer.Forms.MainForm.GetEntities(EntityType entityType) in C:\projects\servicebusexplorer\src\ServiceBusExplorer\Forms\MainForm.cs:line 4477

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 29 (3 by maintainers)

Most upvoted comments

Thanks @ErikMogensen. That corrected exception. However when i try get registrations, i get following exception. It doesn’t show details on hub.

<10:35:25> The file C:\Users\Kavita\Downloads\ServiceBusExplorer-4.1.112\ServiceBusExplorer.exe.Config is used for the configuration settings. <10:36:57> The application is now connected to the sb://shahugardenmns.servicebus.windows.net/ service bus namespace. <10:36:57> MessagingFactory successfully created <10:36:58> The notification hub shahugardenmhub has been successfully retrieved. <10:37:08> Exception: The remote server returned an error: (401) Unauthorized…TrackingId:7a9abaa5-d412-4cc8-a8b4-79e63006505f,TimeStamp:6/17/2020 5:07:08 AM <10:37:08> InnerException: The remote server returned an error: (401) Unauthorized. <10:37:25> Exception: The remote server returned an error: (401) Unauthorized…TrackingId:b9c8c446-327a-496b-8fa9-ceddb49ab0f6,TimeStamp:6/17/2020 5:07:25 AM <10:37:25> InnerException: The remote server returned an error: (401) Unauthorized.

image

@ErikMogensen me again … Restarting the tool fixed the issue 😉