I have a WCF service QueuedService.TicketingService.svc
hosted in IIS under application name QueuedService_1_1
. So the complete URL for the service is:
http://example.com/QueuedService_1_1/QueuedService.TicketingService.svc
The service is having a net.msmq endpoint :
<endpoint address="net.msmq://example.com/private/QueuedService_1_1/QueuedService.TicketingService.svc"
binding="netMsmqBinding"
bindingConfiguration="MsmqBindingTransactional"
contract="QueuedService.ITicketingService" />
I have created a queue in MSMQ named:
QueuedService_1_1/QueuedService.TicketingService.svc
When I call this service, the messages are getting delivered to the queue, but not getting picked up by the service. When I hit the service URL in the browser, the messages get picked by the service.
Is the problem with the naming ie _1_1
in the IIS application name and the queue name? Because when I host the same service without _1_1
ie QueuedService
in IIS and queue named QueuedService/QueuedService.TicketingService.svc
, it works.
Not sure it will work but try -
instead of _
.
See MSDN .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.