In our Cloud Service project, we have 2 instances for work role (deploy to Azure), the work role is consume events from the EventHub using EventProcessorHost(host name is RoleInstance name), we send 100 events(event1~event100) to the EventHub, but some time we will got the Exception:
Microsoft.ServiceBus.Messaging.ReceiverDisconnectedException: A receiver with epoch '3' already exists. A new receiver with epoch 1 cannot be created. TrackingId:5d3f5ed9-c397-42c6-8b9f-5f8f8f904131_G13_B13,TimeStamp:3/4/2015 2:16:33 AM TrackingId:48438925-b879-4b20-b696-2b4fc3066a13_B13, Reference:b158c7f8-917e-4b24-a6f9-2a63e0af4bb9, Timestamp:3/4/2015 2:16:33 AM
at Microsoft.ServiceBus.Common.ExceptionDispatcher.Throw(Exception exception)
at Microsoft.ServiceBus.Common.Parallel.TaskHelpers.EndAsyncResult(IAsyncResult asyncResult)
at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.<CallTask>b__9(TIteratorAsyncResult thisPtr, IAsyncResult r)
at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)
the 2 instances will got the same event(like event25) when we got the exception, so is there a recommended way to handle the exception or do not occur the exception?