![](/img/trans.png)
[英]How do we fetch real time messages from RabbitMQ queue without having any delay in .NET?
[英]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.