c# - nservicebus startup error -



c# - nservicebus startup error -

i'm trying , running nservicebus setup.

i'm trying re-create of asyncpages sample project.

in commandserver project have next config:

<msmqtransportconfig inputqueue="sonatribeinputqueue" errorqueue="error" numberofworkerthreads="1" maxretries="5" />

i have next message endpoint:

public class messageendpoint : iconfigurethisendpoint, asa_server, iwantcustominitialization { /// <summary> /// perform initialization logic. /// </summary> public void init() { console.writeline("configuring persistence..."); var container = new windsorcontainer(); container.install(fromassembly.indirectory(new assemblyfilter(assembly.getexecutingassembly().location, "commandserver.*.dll"))); configure.with() .castlewindsorbuilder(container).binaryserializer(); } }

in messages project have next class:

[serializable] public class command : imessage { public int id { get; set; } }

and in commandserver project have corresponding commandhandler:

public class commandmessagehandler : ihandlemessages<command> { public ibus bus { get; set; } public void handle(command message) { logger.info(string.format("server 1 received command id {0}.", message.id)); } private static readonly ilog logger = logmanager.getlogger(typeof(commandmessagehandler)); }

no, aside windsor stuff - doesn't impact @ - there nil different async project this. yet whenever run commandserver next output:

configuring eventstore persistence... 2011-07-12 16:33:32,524 [1] warn nservicebus.unicast.unicastbus [(null)] <(null )> - localaddress property of unicastbusconfig not found. using inputqueue prope rty of msmqtransportconfig instead. not supported in next versi on. 2011-07-12 16:33:32,702 [1] info nservicebus.hosting.roles.rolemanager [(null)] <(null)> - role nservicebus.asa_server configured 2011-07-12 16:33:32,750 [1] info nservicebus.host [(null)] <(null)> - going activate profile: nservicebus.lite, nservicebus.host, version=3.0.0.0, culture=n eutral, publickeytoken=9fc386479f8a226c 2011-07-12 16:33:35,749 [1] fatal nservicebus.hosting.generichost [(null)] <(nul l)> - system.invalidoperationexception: no destination found messag e type messages.command. check <messageendpointmapping> section of confi guration of endpoint entry either specific message type or assembly. @ nservicebus.unicast.unicastbus.subscribe(type messagetype, predicate`1 con dition) in c:\dev\nservicebus\src\unicast\nservicebus.unicast\unicastbus.cs:line 405 @ nservicebus.unicast.unicastbus.subscribe(type messagetype) in c:\dev\nserv icebus\src\unicast\nservicebus.unicast\unicastbus.cs:line 353 @ nservicebus.unicast.unicastbus.performautosubcribe() in c:\dev\nservicebus \src\unicast\nservicebus.unicast\unicastbus.cs:line 754 @ nservicebus.unicast.unicastbus.nservicebus.istartablebus.start(action star tupaction) in c:\dev\nservicebus\src\unicast\nservicebus.unicast\unicastbus.cs:l ine 739 @ nservicebus.unicast.unicastbus.nservicebus.istartablebus.start() in c:\dev \nservicebus\src\unicast\nservicebus.unicast\unicastbus.cs:line 702 @ nservicebus.hosting.generichost.start() in c:\dev\nservicebus\src\hosting\ nservicebus.hosting\generichost.cs:line 99

any ideas doing wrong?

i think find missing messageendpointmapping section

the sample using not bus.send , hence not need message mapping section.

the thing handler in sample bus.return

the other alternative utilize bus.send queue name intend message end at.

c# nservicebus esb cqrs

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -