Error: System.Security.Cryptography.CryptographicException: The payload was invalid. #346
-
Hi, I was trying to setup my blog with this repo and run into this error when debugging the web project:
Setup details:
I was able to debug the web project initially but now only get this error. I even re-downloaded a fresh copy of the v8.0 release and get the same error when first trying to debug it. Seems like it could be related to the ThemeToggler when trying to access the local storage? Willing to help debug, thank you for your time. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @digitaldirk Indeed it is the LocalStorage. Your problem will be resolved if you delete all the entries (for localhost - the picture is just an example): I am not sure what causes that. In any case, it might be wise to wrap access to the LocalStorage with a |
Beta Was this translation helpful? Give feedback.
Hey @digitaldirk
Indeed it is the LocalStorage. Your problem will be resolved if you delete all the entries (for localhost - the picture is just an example):
I am not sure what causes that. In any case, it might be wise to wrap access to the LocalStorage with a
try
/catch
and delete entries that can't be loaded.