How to fix a cryptographic keys error

Raymond Starkey 0 Reputation points
2025-02-22T18:17:25.01+00:00

I have recently upgraded the my web app to .Net9.

I am now getting this error message from a call to CosmosDB to get a specific record...

System.Security.Cryptography.CryptographicException: The key {92c2f09a-14ff-4cea-8f15-e09dcec74987} was not found in the key ring. For more information go to https://aka.ms/aspnet/dataprotectionwarning

at Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingBasedDataProtector.UnprotectCore(Byte[] protectedData, Boolean allowOperationsOnRevokedKeys, UnprotectStatus& status)

The troubleshooter provided this advice, but I can find a key beginning with 56b7...

In the Azure Key Vault (AKV) key, the version is at the end, in this example, it is 56b7.... After the version is removed, in this example, https://my-vault.vault.azure.net/keys/my-key, the creation will succeed.

Azure Cosmos DB doesn't accept a version because it automatically picks up the latest key within one hour of creation. This is called automatic rotation.

but I can't find a key beginning with 56b7...

Can you give me some support to trace this error and fix it?

Can you explain why I cannot raise a ticket despite paying for support?

Thanks

Blazor Training
Blazor Training
Blazor: A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.Training: Instruction to develop new skills.
18 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.