【发布时间】:2014-10-13 04:02:21
【问题描述】:
我在本地运行 NSB 已经有一段时间了,一切正常!当需要将其移至服务器时,我似乎有一个分发器/工作器架构来实现可扩展性。但是,当在服务器分发器或工作人员上运行 NSB 时,它给了我一个我似乎无法理解或解决的错误:
Unhandled Exception: System.InvalidOperationException: Host doesn't support host
ing of multiple endpoints. Endpoint classes found: Namespace.EndpointCo
nfig, Namespace, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null,
Namespace.EndpointConfig, Namespace, Version=1.0.0.0, Culture
=neutral, PublicKeyToken=null You may have some old assemblies in your runtime d
irectory. Try right-clicking your VS project, and selecting 'Clean'.
at NServiceBus.Hosting.Windows.EndpointTypeDeterminer.AssertThatNotMoreThanOn
eEndpointIsDefined(List`1 endpointConfigurationTypes) in y:\BuildAgent\work\31f8
c64a6e8a2d7c\src\NServiceBus.Hosting.Windows\EndpointTypeDeterminer.cs:line 150
at NServiceBus.Hosting.Windows.EndpointTypeDeterminer.GetEndpointConfiguratio
nType(HostArguments arguments) in y:\BuildAgent\work\31f8c64a6e8a2d7c\src\NServi
ceBus.Hosting.Windows\EndpointTypeDeterminer.cs:line 81
at NServiceBus.Hosting.Windows.Program.Main(String[] args) in y:\BuildAgent\w
ork\31f8c64a6e8a2d7c\src\NServiceBus.Hosting.Windows\Program.cs:line 41
我正在像这样配置我的端点:
public class EndpointConfig : IConfigureThisEndpoint, AsA_Server,
IWantCustomInitialization
{
我的端点如下所示:
<add Assembly="HEC.Messages" Endpoint="hec.messageservice@servername" />
我正在运行以生成此错误的命令是...
E:\Services\NServiceBus.Host.exe /install ABC.messageservice
/username:domain\ouruser /password:value NServiceBus.Distributor
NServiceBus.Production NServiceBus.PerformanceCounters
我不知道我在这里做错了什么,或者是什么导致了这个错误。我怀疑我的端点配置不正确,但不确定要更改什么,我尝试按照 NSB 网站上的指南设置分销商/工人,但没有成功。
【问题讨论】:
标签: c# asp.net msmq nservicebus