什么会导致 azure wcf 中继中的 AmqpException?

What would cause AmqpException in azure wcf relay?

我正在使用 wcf 中继记录连接状态事件,我在日志中看到类似这样的内容。

1/26 06:47:12 ERROR Service Bus ConnectionStatus: 'Reconnecting' Event. [(null)][42] LastError: System.ServiceModel.CommunicationException: Exception of type 'System.ServiceModel.CommunicationException' was thrown. ---> Microsoft.ServiceBus.Messaging.Amqp.AmqpException: An AMQP error occurred (condition='amqp:unauthorized-access'). --- End of inner exception stack trace ---

此异常未显示在 this microsoft page, and the only other post I can find anywhere related to this error message is here 的列表中。但是,post 没有任何关于该问题的最新评论或解决方案或解决方法。此外,异常没有任何堆栈跟踪,那么我应该如何解决此错误?

我想作为后续行动,如果 wcf 连接永远不会出错,我会问这是否真的值得担心。

显然,中继不断刷新以保持活动状态的令牌需要服务器上的时间与它正在连接的 Azure 服务相匹配,否则就会出现此类错误。我们能够通过更正服务器时间来修复它。