【问题标题】:Unable to connect to Event HUB from Service bus explorer无法从服务总线资源管理器连接到事件 HUB
【发布时间】:2019-11-21 02:47:07
【问题描述】:

我已经从 GIT 下载了 Service Bus Explorer。我能够连接到服务总线队列和主题。但是当我尝试连接到事件中心时,我遇到了一些问题。错误--> 异常:System.UnauthorizedAccessException:远程服务器返回错误:(401)未授权。索赔为空。没有选择通过任何索赔。 IN连接字符串也没有这个参数。

最初它可以工作,但在我创建新的事件中心工具后停止工作

Failed to retrieve EventHub entities. Exception: System.UnauthorizedAccessException: The remote server returned an error: 
(401) Unauthorized. claim is empty. TrackingId:92ab37f6-452a-48c4-ae20-af7f0e64915b_G25, SystemTracker:ehn-g3ms-tutor.servicebus.windows.net:$Resources/EventHubs, Timestamp:2019-07-11T11:08:52 ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized

【问题讨论】:

  • 你使用的是哪个连接字符串?
  • 目前我正在为相应的策略使用 SAS 连接字符串。我正在使用主连接字符串

标签: azureservicebus azure-eventhub service-bus-explorer


【解决方案1】:

也许你犯了和我一样的错误。 当您创建“事件中心”时,您定义:1) 命名空间和 2) 事件中心。他们都有自己的“共享访问策略”。也许您将策略创建到“事件中心”并复制并粘贴到“服务总线资源管理器”中。但是您应该使用的连接字符串名为“RootManageSharedAccessKey”(位于命名空间中) as you can see in this picture

【讨论】:

    猜你喜欢
    • 2016-10-31
    • 1970-01-01
    • 1970-01-01
    • 2019-10-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-11-04
    • 2016-08-27
    相关资源
    最近更新 更多