简体   繁体   English

Microsoft Azure服务总线-40400:找不到端点

[英]Microsoft Azure Service Bus - 40400: Endpoint not found

I have an Azure Service Bus topic that I am able to send and retrieve to locally however when testing in our VM environment the above error occurs. 我有一个Azure Service Bus主题,可以在本地发送和检索,但是在我们的VM环境中进行测试时,会发生上述错误。 Has anyone experienced this issue? 有人遇到过这个问题吗?

Sample code of message consumption: 消息使用示例代码:

        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;
            }
        }

It looks like there was an issue with nuget managing our packages. nuget管理我们的软件包似乎出现了问题。 There was a version mismatch with our service projects. 我们的服务项目版本不匹配。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM