簡體   English   中英

未從名稱中帶有下划線的隊列中提取郵件

[英]Messages not getting picked up from a queue having underscore in its name

我有一個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隊列,它可以工作。

不確定是否可以使用,但是請嘗試-代替_

參見MSDN

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM