本文介绍了AppHarbor MassTransit CloudAMQP抛出异常指定的任何端点都不可访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我没有指定的端点可以访问到



这是如何配置Masstransit:

  Bus.Initialize(sbc => 
{
sbc.UseRabbitMq();
sbc.UseRabbitMqRouting();
sbc.ReceiveFrom(rabbitmq:// *** ***** - 243c-4e49-87fd-ed809c4839f1_apphb.com:[email protected]/7752f6ce-243c-4e49-87fd-ed809c4839f1_apphb.com);
sbc.Subscribe(subs => subs.Handler< CreateTweetCommand>((message)=> .....................................

我使用的版本是:
MassTransit 2.6.3

MassTransit.RabbitMQ.2.6.3

RabbitMQ.Client.2.8.7

Magnum.2.0.1.0



如何解决这个错误?



谢谢

解决方案

最后它是工作,感谢@CarlHörberg评论。



我已经创建了一个队列,并添加到我的rabbitmq URL,一切都正常工作。



感谢你们的支持


I am trying to use Masstransit with CloudAMQP LEMUR from my AppHarbor application, but I am receiving the exception:

"None of the specified endpoints were reachable"

This is how Masstransit is configured:

Bus.Initialize(sbc =>
                     {
                         sbc.UseRabbitMq();
                         sbc.UseRabbitMqRouting();
                         sbc.ReceiveFrom("rabbitmq://********-243c-4e49-87fd-ed809c4839f1_apphb.com:[email protected]/7752f6ce-243c-4e49-87fd-ed809c4839f1_apphb.com");
                         sbc.Subscribe(subs => subs.Handler<CreateTweetCommand>((message) => .......................................      

The versions that I am using are:MassTransit 2.6.3
MassTransit.RabbitMQ.2.6.3
RabbitMQ.Client.2.8.7
Magnum.2.0.1.0

How can I solve this error?

Thanks

解决方案

Finally It is working, thanks to @Carl Hörberg comments.

I have created a queue and added to my rabbitmq URL, and everything is working fine now.

Thanks guys for the support

这篇关于AppHarbor MassTransit CloudAMQP抛出异常指定的任何端点都不可访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-16 06:27