以下是一些详细信息: 我正在运行 Visual Studio 2015 - 从 GitHub 克隆代码: https://github.com/MassTransit/Sample-Courier.git
我在我的一台 Hyper-V 虚拟机(IP 地址:192.168.1.36)中设置了rabbitmq - 并且我能够通过 http://192.168.1.36:15672/ 访问管理控制台
但是当我运行示例应用程序(客户端项目)时,应用程序抛出异常:
An unhandled exception of type 'RabbitMQ.Client.Exceptions.OperationInterruptedException' occurred in mscorlib.dll
Additional information: The AMQP operation was interrupted: AMQP close-reason, initiated by Peer, code=540, text="NOT_IMPLEMENTED - global=true", classId=60, methodId=10, cause=
最佳答案
根据 Chris 的评论,我检查了我在 Ubuntu VM 上安装的版本,它是 3.2.3,我发现这就是根本原因。
所以基本上apt对于rabbitmq来说已经很旧了 - 最新版本应该是3.6.0,因为我不太熟悉如何安装deb,所以我只是使用apt-get来安装它。
卸载旧版本(3.2.3)并下载 deb 文件 3.6.0,然后再次安装后 - 一切都按预期进行。
关于masstransit - 当我尝试运行公共(public)交通示例应用程序 Sample-Courier 时,RabbitMQ.Client.Exceptions.OperationInterruptedException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35271737/