How to ignore key unprotect errors
Asked Answered
R

0

7

My application often fails with failed to unprotect session cookie (I am using two applications with different assembly versions).

Error unprotecting the session cookie. The key {hex_key} was not found in the key ring.

or

System.InvalidOperationException: The antiforgery token could not be decrypted. ---> System.Security.Cryptography.CryptographicException: The key {hex_key} was not found in the key ring.

Antiforgery errors happen at get requests (so nothing to be protected there). How can I ignore such errors and display page for users (with new session)?

Romaine answered 26/6, 2017 at 15:4 Comment(1)
I have the same problem. It's absolutely flooding my logs and causing my app to crash. Did you manage to get to the bottom of this?Dartmoor

© 2022 - 2024 — McMap. All rights reserved.