Skip to content

Error: System.Security.Cryptography.CryptographicException: The payload was invalid. #346

Closed Answered by linkdotnet
digitaldirk asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by digitaldirk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants