Conference Registration: MessageEntityNotFound exception is thrown when the azure tables are removed and tried to register for a conference again. #470
Try running the application from portal and try registering for a conference
once 'Order Now' (RegisterToConference command is sent) is clicked, the page remains with "cannot determine the state of the registration" and MessageEntityNotFound exception was logged in the newly created WADLogsTable.
Below is the error that has been logged.
An error occurred while processing the message (MessageId: fb7ed560-d77c-4e19-8cdc-5e38514f2eaf) and will be abandoned:
Infrastructure.EntityNotFoundException: SeatsAvailability: de5fcb50-5cf0-41c1-a77b-a880c9af73bb
at Infrastructure.Azure.EventSourcing.AzureEventSourcedRepository`1.Get(Guid id) in C:\CQRS\0529\source\mspnp-cqrs-journey-code-7a6acb5\source\Infrastructure\Azure\Infrastructure.Azure\EventSourcing\AzureEventSourcedRepository.cs:line 73
at Registration.Handlers.SeatsAvailabilityHandler.Handle(MakeSeatReservation command) in C:\CQRS\0529\source\mspnp-cqrs-journey-code-7a6acb5\source\Conference\Registration\Handlers\SeatsAvailabilityHandler.cs:line 40
at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid2[T0,T1](CallSite site, T0 arg0, T1 arg1)
at Infrastructure.Azure.Messaging.Handling.CommandProcessor.ProcessMessage(String traceIdentifier, Object payload) in C:\CQRS\0529\source\mspnp-cqrs-journey-code-7a6acb5\source\Infrastructure\Azure\Infrastructure.Azure\Messaging\Handling\CommandProcessor.cs:line 76
at Infrastructure.Azure.Messaging.Handling.MessageProcessor.OnMessageReceived(Object sender, BrokeredMessageEventArgs args) in C:\CQRS\0529\source\mspnp-cqrs-journey-code-7a6acb5\source\Infrastructure\Azure\Infrastructure.Azure\Messaging\Handling\MessageProcessor.cs:line 151; TraceSource 'WaWorkerHost.exe' event
Below is the error that has been logged.
An error occurred while processing the message (MessageId: fb7ed560-d77c-4e19-8cdc-5e38514f2eaf) and will be abandoned: Infrastructure.EntityNotFoundException: SeatsAvailability: de5fcb50-5cf0-41c1-a77b-a880c9af73bb at Infrastructure.Azure.EventSourcing.AzureEventSourcedRepository`1.Get(Guid id) in C:\CQRS\0529\source\mspnp-cqrs-journey-code-7a6acb5\source\Infrastructure\Azure\Infrastructure.Azure\EventSourcing\AzureEventSourcedRepository.cs:line 73 at Registration.Handlers.SeatsAvailabilityHandler.Handle(MakeSeatReservation command) in C:\CQRS\0529\source\mspnp-cqrs-journey-code-7a6acb5\source\Conference\Registration\Handlers\SeatsAvailabilityHandler.cs:line 40 at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid2[T0,T1](CallSite site, T0 arg0, T1 arg1) at Infrastructure.Azure.Messaging.Handling.CommandProcessor.ProcessMessage(String traceIdentifier, Object payload) in C:\CQRS\0529\source\mspnp-cqrs-journey-code-7a6acb5\source\Infrastructure\Azure\Infrastructure.Azure\Messaging\Handling\CommandProcessor.cs:line 76 at Infrastructure.Azure.Messaging.Handling.MessageProcessor.OnMessageReceived(Object sender, BrokeredMessageEventArgs args) in C:\CQRS\0529\source\mspnp-cqrs-journey-code-7a6acb5\source\Infrastructure\Azure\Infrastructure.Azure\Messaging\Handling\MessageProcessor.cs:line 151; TraceSource 'WaWorkerHost.exe' event