[NOP4.0] Error closing the session

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
Hi all,
My Application is build on the NOP 4.0 with .net Core 2, and we found the program is not very stable, we found some error log on stdoutLog, it is very frequently, is anyone encounter this problem

fail: Microsoft.AspNetCore.Session.SessionMiddleware[1]
      Error closing the session.
System.OperationCanceledException: The operation was canceled.
   at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at Microsoft.AspNetCore.Session.DistributedSession.<CommitAsync>d__32.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Session.SessionMiddleware.<Invoke>d__9.MoveNext()
4 years ago
Did you customized nopCommerce 4.0 to run under Core 2.0 ?
4 years ago
Yes, and it run smooth before.
4 years ago
I am also getting Same error after moving to another hosting provider.

fail: Microsoft.AspNetCore.Session.SessionMiddleware[1]
      Error closing the session.
System.OperationCanceledException: The operation was canceled.
   at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at Microsoft.AspNetCore.Session.DistributedSession.<CommitAsync>d__32.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Session.SessionMiddleware.<Invoke>d__9.MoveNext()
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2]
      Request finished in 44851.9749ms 200 text/html; charset=utf-8
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
      Request starting HTTP/1.1 POST http://www.justhaat.com/login application/x-www-form-urlencoded 247
info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
      Executed action XcellenceIT.Plugin.Solr.Products.Controllers.SolrProductController.Category (XcellenceIT.Plugin.Solr.Products) in 40131.0188ms
info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
      Executed action XcellenceIT.Plugin.Solr.Products.Controllers.SolrProductController.Category (XcellenceIT.Plugin.Solr.Products) in 33951.7813ms
fail: Microsoft.AspNetCore.Session.SessionMiddleware[1]
      Error closing the session.
System.OperationCanceledException: The operation was canceled.
   at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at Microsoft.AspNetCore.Session.DistributedSession.<CommitAsync>d__32.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Session.SessionMiddleware.<Invoke>d__9.MoveNext()
4 years ago
Which SQL Version are you using?
https://www.nopcommerce.com/boards/t/65041/410-build-from-source-results-in-errors.aspx
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.