【问题标题】:Messages not getting picked up from a queue having underscore in its name未从名称中带有下划线的队列中提取消息
【发布时间】:2015-03-20 04:45:24
【问题描述】:

我有一个 WCF 服务 QueuedService.TicketingService.svc 托管在 IIS 中,应用程序名称为 QueuedService_1_1。所以服务的完整 URL 是:

http://example.com/QueuedService_1_1/QueuedService.TicketingService.svc

服务有一个 net.msmq 端点:

<endpoint address="net.msmq://example.com/private/QueuedService_1_1/QueuedService.TicketingService.svc"
          binding="netMsmqBinding" 
          bindingConfiguration="MsmqBindingTransactional" 
          contract="QueuedService.ITicketingService" />

我在 MSMQ 中创建了一个队列,名为:

QueuedService_1_1/QueuedService.TicketingService.svc

当我调用此服务时,消息被传递到队列中,但没有被服务接收。当我在浏览器中点击服务 URL 时,服务会选择消息。

IIS 应用程序名称和队列名称中的命名(即_1_1)是否存在问题? 因为当我在没有 _1_1 的情况下托管相同的服务时,即 IIS 中的 QueuedService 和名为 QueuedService/QueuedService.TicketingService.svc 的队列时,它可以工作。

【问题讨论】:

  • 非常感谢!您可以添加相同的响应作为答案,以便我接受。

标签: .net wcf msmq netmsmqbinding msmq-wcf


【解决方案1】:

不确定它是否有效,但请尝试使用 - 而不是 _

MSDN

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-07-11
    • 1970-01-01
    • 2011-01-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多