The lock supplied is invalid. Either the lock expired, or the message has already been removed from the queue

Microsoft.ServiceBus lock error message “The lock supplied is invalid. Either the lock expired, or the message has already been removed from the queue” when calling CompleteAsync

You can try to prevent this exception by increasing the “Lock Duration” value which is found under General -> Properties for the queue in the new Azure portal

 

See stack overflow