[英]MassTransit Request Response sample
我正在學習MassTransit,因此我下載了他們擁有的示例 ,但是它似乎不適用於我,嘗試啟動該服務時遇到以下錯誤:
An exception occurred
MassTransit.RabbitMqTransport.RabbitMqConnectionException: Connect failed: igor@localhost:5672/test ---> RabbitMQ.Client.Exceptions.BrokerUnreachableException: None of the specified endpoints were reachable ---> RabbitMQ.Client.Exceptions.OperationInterruptedException: The AMQP operation was interrupted: AMQP close-reason, initiated by Peer, code=530, text="NOT_ALLOWED - vhost test not found", classId=10, methodId=40, cause=
at RabbitMQ.Client.Impl.SimpleBlockingRpcContinuation.GetReply(TimeSpan timeout)
當我嘗試使用使用較舊版本的MassTransit的其他示例時,它們運行良好。
該示例使用RMQ URI,其中包括test
虛擬主機。 由於尚未創建,因此代碼將失敗,並且實際上可以告訴您-未找到虛擬主機test
。
這是該示例中的app.config :
<appSettings>
<add key="RabbitMQHost" value="rabbitmq://localhost/test"/>
<add key="ServiceQueueName" value="request_service"/>
</appSettings>
因此,客戶端使用相同的URI,因此它們都將無法啟動。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.