c# - NServiceBus not creating RabbitMQ queues -
i have problem nservicebus not automatically create queues.
if run of endpoints (excluding mvc web client) following error. (the endpoints have been generated using servicematrix)
2015-04-23 10:50:12.241 error nservicebus endpoint unable contact servicecontrol backend report endpoint information. have servicecont rol plugins installed in endpoint. however, please ensure particul ar servicecontrol service installed on machine, or if running servicecon trol on different machine, ensure endpoint's app.config / web.c onfig, appsettings has following key set appropriately: servicecontrol/queue . example: additional details: {0} nservicebus.unicast.queuing.queuenotfoundexception: exchange recipient d oes not exist ---> rabbitmq.client.exceptions.alreadyclosedexception: cl osed: amqp operation interrupted: amqp close-reason, initiated peer, code=404, text="not_found - no exchange 'particular.servicecontrol' in vhost '/' ", classid=60, methodid=40, cause= @ rabbitmq.client.impl.modelbase.waitforconfirms(timespan timeout, boolean& timedout)...
so seems particular.servicecontrol not being created. rest of queues indeed created.
if run web project exception: {"cannot access disposed object.\r\nobject name: 'commonobjectbuilder'."}. error happens on "bus.create(config)" , no queues created.
if (debugger.isattached) { config.usepersistence<inmemorypersistence>(); config.enableinstallers(); } var bus = bus.create(config);
if mannually add particular.servicecontrol queues errors disapear.
so in end mistake not updating servicecontrol use rabbitmq.
nservicebus not fail nicely correct error messages when happens. in effect servicecontrol responsible creating particular.servicecontrol queue , when queue missing hell breaks loose in bus itself.
however not simple discussed in multi transport installation documentation. in short, while nsb5 works rabbitmq v2.1.2 (latest stable), servicecontrol binary requires v1.1.5. 1 therefore has copy binaries "rabbitmq.client v3.2.1" , "rabbitmq v2.1.2" nuget packages in "c:\program files (x86)\particular software\servicecontrol" else 1 gets
configuration of transport failed. not resolve type 'nservicebus.rabbitmq, nservicebus.transports.rabbitmq' setting 'transporttype'. ensure assembly present , type correctly defined in settings
when running installation rabbitmq servicecontrol.
i found solution here.