When I'm send two or more ajax requests to same controller on one page I got the following error:
The request lifetime scope cannot be created because the HttpContext is not available.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: The request lifetime scope cannot be created because the HttpContext is not available.
Source Error:
Line 20: get
Line 21: {
Line 22: return DependencyResolver.Current.GetService<ISessionService>();
Line 23: }
Line 24: }