<legend id='2PmxY'><style id='2PmxY'><dir id='2PmxY'><q id='2PmxY'></q></dir></style></legend>
<tfoot id='2PmxY'></tfoot>

<i id='2PmxY'><tr id='2PmxY'><dt id='2PmxY'><q id='2PmxY'><span id='2PmxY'><b id='2PmxY'><form id='2PmxY'><ins id='2PmxY'></ins><ul id='2PmxY'></ul><sub id='2PmxY'></sub></form><legend id='2PmxY'></legend><bdo id='2PmxY'><pre id='2PmxY'><center id='2PmxY'></center></pre></bdo></b><th id='2PmxY'></th></span></q></dt></tr></i><div id='2PmxY'><tfoot id='2PmxY'></tfoot><dl id='2PmxY'><fieldset id='2PmxY'></fieldset></dl></div>
      <bdo id='2PmxY'></bdo><ul id='2PmxY'></ul>

    1. <small id='2PmxY'></small><noframes id='2PmxY'>

        .NET 客户端编程中出现异常“AMQP 操作被中断&qu

        时间:2023-08-24

            <tbody id='MvRli'></tbody>

          <small id='MvRli'></small><noframes id='MvRli'>

            <legend id='MvRli'><style id='MvRli'><dir id='MvRli'><q id='MvRli'></q></dir></style></legend>
            <tfoot id='MvRli'></tfoot>

                • <bdo id='MvRli'></bdo><ul id='MvRli'></ul>

                • <i id='MvRli'><tr id='MvRli'><dt id='MvRli'><q id='MvRli'><span id='MvRli'><b id='MvRli'><form id='MvRli'><ins id='MvRli'></ins><ul id='MvRli'></ul><sub id='MvRli'></sub></form><legend id='MvRli'></legend><bdo id='MvRli'><pre id='MvRli'><center id='MvRli'></center></pre></bdo></b><th id='MvRli'></th></span></q></dt></tr></i><div id='MvRli'><tfoot id='MvRli'></tfoot><dl id='MvRli'><fieldset id='MvRli'></fieldset></dl></div>
                  本文介绍了.NET 客户端编程中出现异常“AMQP 操作被中断"(代码 = 406)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我有一个 2.8.2 RabbitMQ 服务器和一个 2.8.2 客户端 dll,有声明队列和获取消息的代码,它工作正常(所有参数都正确):

                  I have a 2.8.2 RabbitMQ Server and a 2.8.2 client dll, have the code to declare a queue and get a message, it works correctly (all parameters are correct):

                  IModel channel=null;
                  
                  ConnectionFactory factory = new ConnectionFactory ();
                  factory.HostName = "192.168.68.4";
                  _QueueName = "172.16.1.1";
                  
                  factory.UserName = "guest";
                  factory.Password = "guest";
                  factory.VirtualHost = "/";
                  
                  factory.RequestedHeartbeat = 30;
                  
                  if (factory.Endpoint == null) {
                      Console.WriteLine (" factory.Endpoint==null ");
                  }
                  
                  
                  // 接受消息的队列名称是本地的IP地址
                  _QueueName = "172.16.1.1";
                  _RMQConnection = factory.CreateConnection ();
                  
                  Console.WriteLine ("factory.CreateConnection()");
                  
                  channel = _RMQConnection.CreateModel ();
                  
                  channel.QueueDeclare(_QueueName, false, false,false,null);
                  

                  但是当我下载 3.0.1 RabbitMQ 服务器和一个 3.0.1 客户端 dll 时,我使用相同的代码并出现异常:

                  But when I download 3.0.1 RabbitMQ Server and a 3.0.1 client dll, I use the same code and have the exception:

                  AMQP 操作被中断:AMQP 关闭原因,由Peer, code=406, text="PRECONDITION_FAILED - 队列参数vhost '/' 中的 '172.16.1.1' 不等效",classId=50,methodId=10,原因=

                  The AMQP operation was interrupted: AMQP close-reason, initiated by Peer, code=406, text="PRECONDITION_FAILED - parameters for queue '172.16.1.1' in vhost '/' not equivalent", classId=50, methodId=10, cause=

                  推荐答案

                  当您使用不同的参数重新声明现有队列时,通常会收到该错误消息.检查管理控制台以查看队列是否已存在.如果是,请尝试将其删除,然后重新运行您的代码.

                  You typically get that error message when you re-declare an existing queue with different parameters. Check in the management console to see if the queue already exists. If it does, try deleting it and then re-running your code.

                  这篇关于.NET 客户端编程中出现异常“AMQP 操作被中断"(代码 = 406)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:RabbitMQ + Windows + LDAP 不发送密码 下一篇:RabbitMQ 未定义:js/tmpl/login.ejs 处没有模板

                  相关文章

                  最新文章

                  1. <tfoot id='LjbA5'></tfoot>
                        <bdo id='LjbA5'></bdo><ul id='LjbA5'></ul>

                      <small id='LjbA5'></small><noframes id='LjbA5'>

                    1. <i id='LjbA5'><tr id='LjbA5'><dt id='LjbA5'><q id='LjbA5'><span id='LjbA5'><b id='LjbA5'><form id='LjbA5'><ins id='LjbA5'></ins><ul id='LjbA5'></ul><sub id='LjbA5'></sub></form><legend id='LjbA5'></legend><bdo id='LjbA5'><pre id='LjbA5'><center id='LjbA5'></center></pre></bdo></b><th id='LjbA5'></th></span></q></dt></tr></i><div id='LjbA5'><tfoot id='LjbA5'></tfoot><dl id='LjbA5'><fieldset id='LjbA5'></fieldset></dl></div>
                      <legend id='LjbA5'><style id='LjbA5'><dir id='LjbA5'><q id='LjbA5'></q></dir></style></legend>