【问题标题】:Microsoft Azure Service Bus - 40400: Endpoint not foundMicrosoft Azure 服务总线 - 40400:找不到端点
【发布时间】:2018-01-23 23:29:27
【问题描述】:

我有一个 Azure 服务总线主题,我可以在本地发送和检索该主题,但是在我们的 VM 环境中进行测试时,会发生上述错误。有人遇到过这个问题吗?

消息消费示例代码:

        try
        {
            while (!stopFlag)
            {
                BrokeredMessage msg = null;
                try
                {
                    msg = client.Receive();
                }
                catch (Exception x)
                {
                    continue;
                }
                if (msg == null)
                {
                    continue;
                }

                try
                {
                    Handler.handleMessage(msg);
                }
                catch (Exception x)
                {
                    EventLog.WriteEntry("Spently.Listener",
                        Handler.Name + " ERROR " + x.Message + " " + x.StackTrace, EventLogEntryType.Error);
                }
            }
        }
        finally
        {
            if (client != null)
            {
                client.Close();
                client = null;
            }
        }

【问题讨论】:

  • 你能确认两个环境都指向同一个命名空间吗?
  • 感谢肖恩的回复。是的,两者都指向同一个命名空间,解决方案发生的主要变化是: - Azure nuget 包更新到 4.13 - 从 ACS 移动到 SAS 身份验证策略
  • 不要认为这是个问题。您是否为特定实体或命名空间获得 40400?你能在任何地方分享一个简单的重现代码吗?
  • 对于我们运行的侦听器服务的一组主题,我收到错误消息。我不相信命名空间有任何问题,因为我们有另一组主题在同一个命名空间中正常运行。我将努力获取一些示例代码来分享。再次感谢您的帮助!

标签: .net windows azure azureservicebus servicebus


【解决方案1】:

看起来 nuget 管理我们的包时出现了问题。我们的服务项目存在版本不匹配。

【讨论】:

    猜你喜欢
    • 2013-03-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-07-20
    • 2015-08-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多