System.TimeoutException: The operation requested on PersistentChannel timed out


這個異常是在使用EasyNetQ時,遇到的問題,找了兩個小時.

詳細錯誤

Error:System.TimeoutException: The operation requested on PersistentChannel timed out.
   在 EasyNetQ.Producer.ClientCommandDispatcherSingleton.Invoke[T](Func`2 channelAction)
   在 EasyNetQ.Producer.ClientCommandDispatcher.Invoke[T](Func`2 channelAction)
   在 EasyNetQ.RabbitAdvancedBus.QueueDeclare(String name, Boolean passive, Boolean durable, Boolean exclusive, Boolean autoDelete, Nullable`1 perQueueMessageTtl, Nullable`1 expires, Nullable`1 maxPriority, String deadLetterExchange, String deadLetterRoutingKey, Nullable`1 maxLength, Nullable`1 maxLengthBytes)
   在 EasyNetQ.Producer.SendReceive.<>c__DisplayClass12_0.<DeclareQueue>b__0(String key)
   在 System.Collections.Concurrent.ConcurrentDictionary`2.AddOrUpdate(TKey key, Func`2 addValueFactory, Func`3 updateValueFactory)
   在 EasyNetQ.Producer.SendReceive.DeclareQueue(String queueName)
   在 EasyNetQ.Producer.SendReceive.Send[T](String queue, T message)
   在 EasyNetQ.RabbitBus.Send[T](String queue, T message)

 

原因是

var bus = RabbitHutch.CreateBus("host=localhost;username=guest;password=guest");

 

這里面=必須直接接值,不能有空格,不能有空格,不能有空格

這作者也是夠坑


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM