Hi,
I have problem running the example.
Specifically, the code below throws exception. Thus, I cannot test the whole example.
Code:
Class: Sales.Orders.OrderCreated.PlaceOrderHandler
Method:
public void Handle(PlaceOrder message)
{
Bus.Publish(orderCreatedEvent); //this throws exception
}
Exception is at the bottom of the thread.
The link below provided on p187 is not available.
https://github.com/Particular/
NServiceBus/releases/download/4.3.3/Particular.NServiceBus‐4.3.3.exe
My environment:
1 MSMQ installed on Wins 10
2. I can see all private queues: sales.orders.ordercreated, xxx.retries, xxx.timeouts, xxx.timeoutsdispatcher
3. I have downloaded this, and installed both MSMQ and MSDTC for NServiceBus.
https://particular.net/start-platform-download
Any idea?
Exception below:
Code:
NServiceBus.Persistence.Raven.TimeoutPersister.RavenTimeoutPersistence Raven could not be contacted. We tried to access Raven using the following url: http://localhost:8080.
System.Net.WebException occurred
HResult=0x80131509
Message=Unable to connect to the remote server
Source=System
StackTrace:
at System.Net.HttpWebRequest.GetResponse()
at Raven.Client.Connection.HttpJsonRequest.ReadJsonInternal(Func`1 getResponse) in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Connection\HttpJsonRequest.cs:line 341
at Raven.Client.Connection.HttpJsonRequest.ReadResponseJson() in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Connection\HttpJsonRequest.cs:line 239
at Raven.Client.Connection.ServerClient.DirectGet(String[] ids, String operationUrl, String[] includes, Boolean metadataOnly) in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Connection\ServerClient.cs:line 1034
at Raven.Client.Connection.ServerClient.<>c__DisplayClass5e.<Get>b__5d(String u) in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Connection\ServerClient.cs:line 991
at Raven.Client.Connection.ReplicationInformer.TryOperation[T](Func`2 operation, String operationUrl, Boolean avoidThrowing, T& result) in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Connection\ReplicationInformer.cs:line 559
at Raven.Client.Connection.ReplicationInformer.ExecuteWithReplication[T](String method, String primaryUrl, Int32 currentRequest, Int32 currentReadStripingBase, Func`2 operation) in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Connection\ReplicationInformer.cs:line 524
at Raven.Client.Connection.ServerClient.ExecuteWithReplication[T](String method, Func`2 operation) in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Connection\ServerClient.cs:line 174
at Raven.Client.Document.DocumentSession.LoadInternal[T](String[] ids) in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Document\DocumentSession.cs:line 340
at NServiceBus.Persistence.Raven.SubscriptionStorage.RavenSubscriptionStorage.GetSubscriptions(IEnumerable`1 messageTypes, IDocumentSession session)
at NServiceBus.Persistence.Raven.SubscriptionStorage.RavenSubscriptionStorage.NServiceBus.Unicast.Subscriptions.MessageDrivenSubscriptions.ISubscriptionStorage.GetSubscriberAddressesForMessage(IEnumerable`1 messageTypes)
at NServiceBus.Unicast.Publishing.StorageDrivenPublisher.Publish(TransportMessage message, IEnumerable`1 eventTypes)
at NServiceBus.Unicast.Behaviors.DispatchMessageToTransportBehavior.Invoke(SendPhysicalMessageContext context, Action next)
at NServiceBus.Unicast.Behaviors.SerializeMessagesBehavior.Invoke(SendPhysicalMessageContext context, Action next)
at NServiceBus.Pipeline.PipelineFactory.Execute[T](BehaviorChain`1 pipelineAction, T context)
at NServiceBus.Unicast.Behaviors.CreatePhysicalMessageBehavior.Invoke(SendLogicalMessagesContext context, Action next)
at NServiceBus.Pipeline.PipelineFactory.Execute[T](BehaviorChain`1 pipelineAction, T context)
at NServiceBus.Pipeline.PipelineFactory.InvokeSendPipeline(SendOptions sendOptions, IEnumerable`1 messages)
at NServiceBus.Unicast.UnicastBus.Publish[T](T[] messages)
at Sales.Orders.OrderCreated.PlaceOrderHandler.Handle(PlaceOrder message) in D:\myStudio2\DDD\PPPofDDD\Code\12 - Integrating Via Messaging\Sales.Orders.OrderCreated\Application\PlaceOrderHandler.cs:line 37
at NServiceBus.Unicast.HandlerInvocationCache.Invoke(Object handler, Object message, Dictionary`2 dictionary)
at NServiceBus.Unicast.Behaviors.LoadHandlersBehavior.<Invoke>b__1(Object handlerInstance, Object message)
at NServiceBus.Unicast.Behaviors.InvokeHandlersBehavior.Invoke(HandlerInvocationContext context, Action next)
at NServiceBus.Sagas.SagaPersistenceBehavior.Invoke(HandlerInvocationContext context, Action next)
at NServiceBus.Unicast.Behaviors.SetCurrentMessageBeingHandledBehavior.Invoke(HandlerInvocationContext context, Action next)
at NServiceBus.Pipeline.PipelineFactory.Execute[T](BehaviorChain`1 pipelineAction, T context)
at NServiceBus.Pipeline.PipelineFactory.InvokeHandlerPipeline(MessageHandler handler)
at NServiceBus.Unicast.Behaviors.LoadHandlersBehavior.Invoke(ReceiveLogicalMessageContext context, Action next)
at NServiceBus.DataBus.DataBusReceiveBehavior.Invoke(ReceiveLogicalMessageContext context, Action next)
at NServiceBus.Pipeline.PipelineFactory.Execute[T](BehaviorChain`1 pipelineAction, T context)
at NServiceBus.Unicast.Messages.ExecuteLogicalMessagesBehavior.Invoke(ReceivePhysicalMessageContext context, Action next)
at NServiceBus.UnitOfWork.UnitOfWorkBehavior.Invoke(ReceivePhysicalMessageContext context, Action next)
Inner Exception 1:
SocketException: No connection could be made because the target machine actively refused it