Ravendb 雷布和拉文德

Ravendb 雷布和拉文德,ravendb,rebus,Ravendb,Rebus,正如我在上一个问题()中提到的,我现在研究的是远程队列和以前的本地队列,我使用的是Rebus 0.83。在这种情况下,我的RavenDB与我的Rebus windows服务在一台单独的机器上。“System.Net.Sockets.SocketException:无法建立连接,因为目标计算机主动拒绝了它127.0.0.1:8080”我在代码中的任何地方都没有使用localhost,我检查了配置,它指向RavenDB的正确url。我的配置是 Configure.With(new WindsorCo

正如我在上一个问题()中提到的,我现在研究的是远程队列和以前的本地队列,我使用的是Rebus 0.83。在这种情况下,我的RavenDB与我的Rebus windows服务在一台单独的机器上。“System.Net.Sockets.SocketException:无法建立连接,因为目标计算机主动拒绝了它127.0.0.1:8080”我在代码中的任何地方都没有使用localhost,我检查了配置,它指向RavenDB的正确url。我的配置是

Configure.With(new WindsorContainerAdapter(container))
    .Logging(l => l.Serilog())
    .Transport(t => t.UseMsmqAndGetInputQueueNameFromAppConfig())
    .MessageOwnership(d => d.FromRebusConfigurationSection())
    .Subscriptions(s => s.Use(new RavenDbSubscriptionStorage(store, "Subscriptions")))
    .Sagas(s => s.Use(new RavenDbSagaPersister(store)))
    .CreateBus().Start();
我知道我可以通过Rebus从机器上访问RavenDB,因为我尝试了一个简单的控制台应用程序。感谢您的帮助

整个错误堆栈跟踪都在这里

15:17  [Warning] 10   User exception in Rebus 1 worker 1: Rebus.MessageHandleException: Could not handle message with ID 06729fcb-8a8f-4148-876a-8ed88c741cf7\2428 ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:8080
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
--- End of inner exception stack trace ---
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 340
at Raven.Client.Connection.HttpJsonRequest.ReadResponseJson() in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Connection\HttpJsonRequest.cs:line 237
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 558
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.Connection.ServerClient.Get(String[] ids, String[] includes, Boolean metadataOnly) in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Connection\ServerClient.cs:line 991
at Raven.Client.Document.DocumentSession.LoadInternal[T](String[] ids, String[] includes) in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Document\DocumentSession.cs:line 313
at Raven.Client.Document.MultiLoaderWithInclude`1.Load(String id) in c:\Builds\RavenDB-Stable\Raven.Client.Lightweight\Document\MultiLoaderWithInclude.cs:line 90
at Rebus.RavenDb.RavenDbSagaPersister.Find[T](String sagaDataPropertyPath, Object fieldFromMessage)   at Rebus.Bus.Dispatcher.<Dispatch>d__c`1.MoveNext()
15:17[警告]10 Rebus 1 worker 1中的用户异常:Rebus.MessageHandleException:无法处理ID为06729fcb-8a8f-4148-876a-8ed88c741cf7\2428-->System.Net.WebException:无法连接到远程服务器---->System.Net.Sockets.SocketException:无法建立连接,因为目标计算机主动拒绝了它127.0.0.1:8080
位于System.Net.Sockets.Socket.DoConnect(端点端点快照,SocketAddress SocketAddress)
在System.Net.ServicePoint.ConnectSocketInternal(布尔连接失败、套接字s4、套接字s6、套接字和套接字、IPAddress和address、ConnectSocketState状态、IAsyncResult asyncResult、异常和异常)
---内部异常堆栈跟踪的结束---
在System.Net.HttpWebRequest.GetResponse()中
在c:\Builds\RavenDB Stable\Raven.Client.Lightweight\Connection\HttpJsonRequest.cs中的Raven.Client.Connection.HttpJsonRequest.ReadJsonInternal(Func`1 getResponse)处:第340行
在c:\Builds\RavenDB Stable\Raven.Client.Lightweight\Connection\HttpJsonRequest.cs中的Raven.Client.Connection.HttpJsonRequest.ReadResponseJson()处:第237行
在c:\Builds\RavenDB Stable\Raven.Client.Lightweight\Connection\ServerClient.cs中的Raven.Client.Connection(字符串[]ID,字符串操作URL,字符串[]包含,仅布尔元数据)处
在Raven.Client.Connection.ServerClient.c__显示c:\Builds\RavenDB Stable\Raven.Client.Lightweight\Connection\ServerClient.cs中的Class5e.b__5d(字符串u):第991行
在c:\Builds\RavenDB Stable\Raven.Client.Lightweight\Connection\ReplicationInformer.tryooperation[T](Func`2操作、字符串操作URL、布尔值避免抛出、T&result)中的Raven.Client.Connection.ReplicationInformer.tryooperation[T](T)处:第558行
在c:\Builds\RavenDB Stable\Raven.Client.Lightweight\Connection\ReplicationInformer.ExecuteWithReplication[T](字符串方法、字符串primaryUrl、Int32 currentRequest、Int32 currentReadStripingBase、Func`2操作)中的Raven.Client.Connection.ExecuteWithReplication[T]:第524行
在c:\Builds\RavenDB Stable\Raven.Client.Lightweight\Connection\ServerClient.cs中的Raven.Client.Connection.ServerClient.ExecuteWithReplication[T](字符串方法,Func`2操作)处:第174行
在c:\Builds\RavenDB Stable\Raven.Client.Lightweight\Connection\ServerClient.cs中的Raven.Client.Get(字符串[]ID,字符串[]包含,仅布尔元数据)中
在c:\Builds\RavenDB Stable\Raven.Client.Lightweight\Document\DocumentSession.cs中的Raven.Client.DocumentSession.LoadInternal[T](字符串[]ID,字符串[]包含)处
在c:\Builds\RavenDB Stable\Raven.Client.Lightweight\Document\MultiLoaderWithInclude.cs中的Raven.Client.Document.multiloader包含`1.Load(字符串id):第90行
在Rebus.Bus.Dispatcher.d_uc`1.MoveNext()的Rebus.RavenDb.RavenDbSagaPersister.Find[T](字符串SagadaPropertyPath,对象字段FromMessage)

结果表明这是由于用户权限造成的。默认的本地系统不能跨机器发送消息,也不能跨机器到达raven。显然

这是由于用户权限造成的。默认的本地系统不能跨机器发送消息,也不能跨机器到达raven。