msmq - Exception occured while trying to use MsmqSubscription storage -
i newbie in nservice bus , trying create bus using msmqsubscribtion storage , getting following error.
exception when starting endpoint, error has been logged. reason: error creating object name 'nservicebus.unicast.subscriptions.msmq.msmqsubscriptionstorage' : error setting property values: propertyaccessexceptionsexception (1 errors); nested propertyaccessexceptions are: [spring.core.typemismatchexception: cannot convert property value of type [system.string] required type [system.string] property 'queue'., inner exception: system.argumentexception: there problem subscription storage queue . see enclosed exception details. ---> system.messaging.messagequeueexception: format name invalid. @ system.messaging.messagequeue.mqcacheableinfo.get_transactional() @ system.messaging.messagequeue.get_transactional() @ nservicebus.unicast.subscriptions.msmq.msmqsubscriptionstorage.set_queue(string value) in d:\buildagent-02\work\672d81652eaca4e1\src\impl\unicast\nservicebus.unicast.subscriptions.msmq\msmqsubscriptionstorage.cs:line 184 --- end of inner exception stack trace --- @ nservicebus.unicast.subscriptions.msmq.msmqsubscriptionstorage.set_queue(string value) in d:\buildagent-02\work\672d81652eaca4e1\src\impl\unicast\nservicebus.unicast.subscriptions.msmq\msmqsubscriptionstorage.cs:line 188 @ (object , object , object[] ) @ spring.reflection.dynamic.safeproperty.setvalue(object target, object value) in l:\projects\spring-net\trunk\src\spring\spring.core\reflection\dynamic\dynamicproperty.cs:line 204 @ spring.expressions.propertyorfieldnode.propertyvalueaccessor.set(object context, object value) in l:\projects\spring-net\trunk\src\spring\spring.core\expressions\propertyorfieldnode.cs:line 585 @ spring.expressions.propertyorfieldnode.setpropertyorfieldvalueinternal(object context, object newvalue) in l:\projects\spring-net\trunk\src\spring\spring.core\expressions\propertyorfieldnode.cs:line 406 @ spring.expressions.propertyorfieldnode.setpropertyorfieldvalue(object context, evaluationcontext evalcontext, object newvalue) in l:\projects\spring-net\trunk\src\spring\spring.core\expressions\propertyorfieldnode.cs:line 348]
this config section .
<configuration> <configsections> <section name="msmqtransportconfig" type="nservicebus.config.msmqtransportconfig,nservicebus.core"/> <section name="unicastbusconfig" type="nservicebus.config.unicastbusconfig,nservicebus.core"/> <section name="msmqsubscriptionstorageconfig" type="nservicebus.config.msmqsubscriptionstorageconfig,nservicebus.core" /> </configsections> <msmqtransportconfig inputqueue="myresponsequeue" errorqueue="error" numberofworkerthreads="1" maxretries="5"/> <unicastbusconfig> <messageendpointmappings> <add messages="mymessages.message1" endpoint="pubqueue"/> </messageendpointmappings> </unicastbusconfig> </configuration>
this how tried create bus
nservicebus.configure.with() .defaultbuilder() .log4net() .msmqsubscriptionstorage() .xmlserializer() .msmqtransport() .istransactional(true) .unicastbus() .createbus();
can 1 explain went wrong me? appreciated.
thanks alex.
looks missing actual msmqsubscriptionstorageconfig section. required , point subscription queue.
<msmqsubscriptionstorageconfig queue="queuename" />
Comments
Post a Comment