I am getting this error when using Azure Redis cache to store statesessions in a .NET 4.8 ASP.NET page
It is like the sessions aren’t being closed properly, I can see in the metrics that the gets to the cache is insanely high sometimes over 20.000 each minute.
If I flushall on the cache it works again.
I tried to add UseTaskFriendlySynchronizationContext and set httpRuntime to 4.0 like they say here, but it haven’t solved the issue.
https://github.com/StackExchange/StackExchange.Redis/issues/973#issuecomment-581043573
I tried to scale the cache to a Standard C3 with 6GB and up to 5.000 connections with moderate network bandwidth, without any improvements.
I have configured the RedisSessionStateProvider on the website like this
<sessionState mode="Custom" customProvider="MySessionStateStore">
<providers>
<add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" connectionString="xxxx,password=yyyy=,ssl=False,abortConnect=False" />
</providers>
</sessionState>
Thanks