Steps to reproduce:
- Run an XAF Blazor app;
- Open a browser tab with this app;
- End the browser process;
- Wait several minutes (3 in the case of Chrome).
Expected results:
The app runs normally.
Current results:
Sometimes, the exception occurs:
Call StackSystem.InvalidOperationException: The ValueManagerContext is not active.
at DevExpress.ExpressApp.Blazor.AmbientContext.ValueManagerContext.EnsureIsActive()
at DevExpress.ExpressApp.Blazor.AmbientContext.ValueManagerContext.SetStorage(IValueManagerStorage storage)
at DevExpress.ExpressApp.Blazor.AmbientContext.ValueManagerStorageContext.DevExpress.ExpressApp.Blazor.AmbientContext.IValueManagerStorageContext.EnsureStorage()
at DevExpress.ExpressApp.Blazor.Services.XafApplicationProvider.GetApplication()
at DevExpress.ExpressApp.Blazor.Services.ApplicationSaveModelChangesOnCircuitClosed.OnCircuitClosedAsync(CancellationToken cancellationToken)
Additional information:
The issue is not reproduced each time.