NServiceBus - 生产配置文件和端点未配置为发布者

发布于 2024-12-19 11:34:34 字数 739 浏览 3 评论 0原文

我是 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文