I am trying to debug within VS2010 a message which gets dispatched from my Transactional MSMQ by WCF.
I have 1 message on the queue.
The problem is that if I place a debug breakpoint and leave it for a good few seconds and I step to the next line, i see the message being redispatched again to the application causing the frame to jump back to the starting/entry point of the application again.
any ideas on how I can just get it to work with the 1 message? (there is only one message on the queue so my question is on how I can prevent it from dispatching multiple times)
Many thanks,
ok, setting the WCF service to InstanceContext.Single and Concurrency mode to single seems to work fine. It is a pain though since you have to switch between debugging and release and make sure to modify the app config or service itself to make it MT