无法使用 SqlServerTransport 安装 NServiceBus ServiceControl

Unable to install NServiceBus ServiceControl with SqlServerTransport

我正在尝试使用 SqlServerT运行sport 安装 NServiceBus ServiceControl。

我已经使用

编写了概念验证消息传递应用程序

现在想看看 ServicePulse 是如何工作的,这需要 ServiceControl。

我已阅读说明 http://docs.particular.net/servicecontrol/multi-transport-support哪个州

Only transport DLLs targetting NServiceBus V4 should be used.

这是否意味着 ServiceControl 不能与 NServiceBus V5 一起工作?

我尝试使用 NServiceBus.SqlServer version="2.1.1"

安装 ServiceControl

我运行以下

ServiceControl.exe --install 
  -serviceName="Particular.ServiceControl" 
  -displayName="Particular ServiceControl" 
  -d="ServiceControl/TransportType==NServiceBus.SqlServerTransport, NServiceBus.Transports.SQLServer" 
  -d="NServiceBus/Transport==Server=.\SQL2012;Database=NServiceBus;Trusted_Connection=True"

但我收到错误

We couldn't find a IConfigureTransport implementation for your selected transport

Unhandled Exception: System.InvalidOperationException: We couldn't find a IConfigureTransport implementation for your selected transport: SqlServerTransport
  at NServiceBus.TransportReceiverConfig.CreateTransportConfigurer(Type transportDefinitionType)
   in c:\BuildAgent\workb05a2fea6e4cd32\src\NServiceBus.Core\Unicast\Transport\Config\TransportReceiverConfig.cs:line 83
  at Particular.ServiceControl.Bootstrapper..ctor(ServiceBase host, HostArguments hostArguments) 
   in c:\BuildAgent\workc4c51d06662248c\src\ServiceControl\Bootstrapper.cs:line 47
  at Particular.ServiceControl.Commands.RunBootstrapperAndNServiceBusInstallers.Execute(HostArguments args) 
   in c:\BuildAgent\workc4c51d06662248c\src\ServiceControl\Hosting\Commands\RunBootstrapperAndNServiceBusInstallers.cs:line 12
  at Particular.ServiceControl.Commands.CommandRunner.Execute(HostArguments args) 
   in c:\BuildAgent\workc4c51d06662248c\src\ServiceControl\Hosting\Commands\CommandRunner.cs:line 19
  at Particular.ServiceControl.Program.Main(String[] args) 
   in c:\BuildAgent\workc4c51d06662248c\src\ServiceControl\Program.cs:line 15 

有没有人成功地 运行 ServiceControl 使用 SQL T运行sport 的 V5 版本?

您需要使用http://docs.particular.net/servicecontrol/multi-transport-support

中列出的版本

原因是ServiceControl与其他版本不兼容

这对您的端点 运行 所处的版本没有影响,因此您的端点可以是 运行 NServiceBus v5 和 NServiceBus.SqlServer v2.1.1,这很好,ServiceControl将能够正确运行,即使它使用不同的 NServiceBus 和 NServiceBus.SqlServer 版本。

这有意义吗?


如果您有任何其他问题,请随时在我们的论坛中提问 https://groups.google.com/forum/#!forum/particularsoftware