NServiceBus 端点在升级 3.0.3 后寻找 RavenDB 超时 ->3.2.2 [英] NServiceBus endpoints looking for RavenDB for timeouts after upgrading 3.0.3 -> 3.2.2

查看:56
本文介绍了NServiceBus 端点在升级 3.0.3 后寻找 RavenDB 超时 ->3.2.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 NuGet 我将项目中的所有 NServiceBus 引用从 3.0.3 升级到 3.2.2对于此解决方案中的 4 个服务,我还为它们提供了对来自 NuGet 的 NServiceBus.Host 的引用

Using NuGet I upgraded all the NServiceBus references in a project from 3.0.3 to 3.2.2 For the 4 services in this solution I also gave them references to NServiceBus.Host from NuGet

我将二进制文件部署到测试环境,服务现在启动,但一段时间后失败并出现以下错误.3.2 中是否需要一些额外的配置?

I deployed the binaries to a test environment, and the services now startup but then fail after some time with the error below. Is there some additional configuration required in 3.2?

未处理的异常:Magnum.StateMachine.StateMachineException:发生异常在 Topshelf.Internal.ServiceController`1[[NServiceBus.Hosting.Windows.Windows主机,NServiceBus.Host,版本=3.2.0.0,文化=中性,PublicKeyToken=9fc386479f8a226c]] 在处理 OnStart 时处于初始状态 ---> System.Exception: E启动端点时的异常,已记录错误.原因:一个例外是调用构造函数Void .ctor(Raven.Client.IDocumentStore)"时抛出在RavenTimeoutPersistence"类型上.---> Autofac.Core.DependencyResolutionExcept离子:调用构造函数'Void .ctor(Raven.Client.IDocumentStore)"类型为RavenTimeoutPersistence".---> System.Net.WebExce选项:无法连接到远程服务器 ---> System.Net.Sockets.SocketExce选项:无法建立连接,因为目标机器主动拒绝我

Unhandled Exception: Magnum.StateMachine.StateMachineException: Exception occurr ed in Topshelf.Internal.ServiceController`1[[NServiceBus.Hosting.Windows.Windows Host, NServiceBus.Host, Version=3.2.0.0, Culture=neutral, PublicKeyToken=9fc3864 79f8a226c]] during state Initial while handling OnStart ---> System.Exception: E xception when starting endpoint, error has been logged. Reason: An exception was thrown while invoking the constructor 'Void .ctor(Raven.Client.IDocumentStore)' on type 'RavenTimeoutPersistence'. ---> Autofac.Core.DependencyResolutionExcept ion: An exception was thrown while invoking the constructor 'Void .ctor(Raven.Cl ient.IDocumentStore)' on type 'RavenTimeoutPersistence'. ---> System.Net.WebExce ption: Unable to connect to the remote server ---> System.Net.Sockets.SocketExce ption: No connection could be made because the target machine actively refused i t

推荐答案

在 3.2 中,默认情况下 TimeoutManager 处于开启状态,因此您需要将其关闭以避免使用 Raven.Configure.DisableTimeoutManager()

In 3.2 the TimeoutManager is on by default so you need to turn it off to avoid using Raven. Configure.DisableTimeoutManager()

这篇关于NServiceBus 端点在升级 3.0.3 后寻找 RavenDB 超时 ->3.2.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆