--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
this.connection = this.connectionFactory.CreateConnection();
"Exception thrown: 'Castle.MicroKernel.ComponentNotFoundException' in Castle.Windsor.dll. Additional information: No component for supporting the service RabbitMQ.Client.IEndpointResolver was found"
If I try to resolve this by adding a Registration for a DefaultEndpointResolver (passing in a AmqpTcpEndpoint)
var resolver = new DefaultEndpointResolver(new AmqpTcpEndpoint[] { new AmqpTcpEndpoint(host, port, new SslOption { Enabled = false, } ) }); container.Register(Component.For<IEndpointResolver>().IsDefault().LifeStyle.Singleton.Instance(resolver));I seem to get an error message which complains about resolving the IP address -No ip address could be resolved for [hostname here].Bit stumped as how to resolve, any ideas on how to try and figure this one out would be greatly appreciated.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
container.Register(Component.For<IEndpointResolver>().ImplementedBy<DefaultEndpointResolver>());
Hmm currently when attempting a connection the RabbitMQ client first tries to connect using ipv6, if this fails it throws a (later caught) exception before trying ipv4. Perhaps having the debugger and CLR exceptions enabled interferes with the workflow.4.0.2 does, however, have a change in this area where it filters the resolved IPAddresses to match the IP version. Are you saying 4.0.1 does not exhibit this behaviour?CheersKarl
On 5 September 2016 at 15:23, Adam O -- <jersey...@gmail.com> wrote:
Hey Karl,I've already got a local repo of the source code and looked through thoroughly to understand what's going on, and thought that EndpointResolverFactory should be doing that job as you have explained.We've just been playing around with various things here to ascertain what is causing the problem. Very strange scenarios causing this error to appear.I have a local RabbitMQ instance, and one in the Amazon cloud. If I connect locally (using 'localhost'), no problem. If I connect to the remote instance I get the exception :-Exception thrown: 'System.ArgumentException' in RabbitMQ.Client.dll. No ip address could be resolved for [hostname here]But, we have discovered that this ONLY happens if I have break points set to stop on Common Language Runtime Exceptions - if I put these back to default and execute everything works without issues. It seems enabling CLR debugging was causing the initial connection to fail in this way?Very odd behaviour, also not sure if Castle may be responsible somehow?Adam
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.