Hello there,
We share servers with load balancer. Our load balancer is working without session stickiness. It causes a mess in the sessions. We can see the following error from the logs. Has any improvement been made on this subject?
The version we used is 4.70
Thanks in advance for your support.
Log;
Category: Microsoft.AspNetCore.Antiforgery.DefaultAntiforgery
EventId: 7
RequestId: 800006a4-0002-a600-b63f-84710c7967bb
RequestPath: /login
SpanId: |b53394da-48e51c8d8326815d.
TraceId: b53394da-48e51c8d8326815d
ParentId:
ActionId: 24b3bb6a-8656-4f1a-93ea-c67a9f3a95eb
ActionName: Grand.Web.Controllers.CustomerController.Login (Grand.Web)
An exception was thrown while deserializing the token.
Exception:
Microsoft.AspNetCore.Antiforgery.AntiforgeryValidationException: The antiforgery token could not be decrypted.
---> System.Security.Cryptography.CryptographicException: The key {d043bf1d-8230-4c2a-9642-986739a95772} was not found in the key ring.
at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.UnprotectCore(Byte[] protectedData, Boolean allowOperationsOnRevokedKeys, UnprotectStatus& status)
at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.DangerousUnprotect(Byte[] protectedData, Boolean ignoreRevocationErrors, Boolean& requiresMigration, Boolean& wasRevoked)
at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.Unprotect(Byte[] protectedData)
at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgeryTokenSerializer.Deserialize(String serializedToken)
--- End of inner exception stack trace ---
at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgeryTokenSerializer.Deserialize(String serializedToken)
at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgery.GetCookieTokenDoesNotThrow(HttpContext httpContext)