NServiceBus - 生产配置文件和端点未配置为发布者
我是 NServiceBus 的新手,但已经能够在本地运行 Lite 配置文件。我现在正在尝试确定部署到生产所需的步骤,当我运行生产配置文件时,我在启动时遇到异常。
我有两个服务,一个接收 .Send 消息的命令处理服务,和一个接收 .Publish 消息的事件处理服务。启动命令处理服务时,我得到以下信息
System.InvalidOperationException:来自事件队列的订阅消息 已到达此端点,但此端点尚未配置为 出版商。在 NServiceBus.Unicast.UnicastBus.<>c_DisplayClass17.b_16() 在 NServiceBus.Unicast.UnicastBus.HandledSubscriptionMessage(TransportMessage 消息、ISubscriptionStorage 订阅存储、IAuthorizeSubscriptions 订阅授权者)位于 NServiceBus.Unicast.UnicastBus.TransportMessageReceived(对象发送者, TransportMessageReceivedEventArgs e) at NServiceBus.Unicast.Transport.Msmq.MsmqTransport.OnTransportMessageReceived(TransportMessage 味精)
端点配置清楚地标有 AsA_Publisher。
I am new to NServiceBus, but have been able to get a Lite profile running locally. I am now trying to determine the steps needed for deploying to Production and when I run the production profile I am getting an exception at startup.
I have two services, a command handling service which recieves .Send message, and an event handling service which recieves .Publish messages. When starting up the Command Handling service, I get the following
System.InvalidOperationException: Subscription message from eventqueue
arrived at this endpoint, yet this endpoint is not configured to be a
publisher. at
NServiceBus.Unicast.UnicastBus.<>c_DisplayClass17.b_16()
at
NServiceBus.Unicast.UnicastBus.HandledSubscriptionMessage(TransportMessage
msg, ISubscriptionStorage subscriptionStorage, IAuthorizeSubscriptions
subscriptionAuthorizer) at
NServiceBus.Unicast.UnicastBus.TransportMessageReceived(Object sender,
TransportMessageReceivedEventArgs e) at
NServiceBus.Unicast.Transport.Msmq.MsmqTransport.OnTransportMessageReceived(TransportMessage
msg)
The Endpoint configuration is clearly marked with AsA_Publisher.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论