Hello everyone I have AddDataProtection service for protect and unprotect a key . It's working fine on local . But I have deploy a code on server faced a issue. This issue is
CryptographicException: The key {d85f-46df-bee3-a172afeeeda4} was not found in the key ring

Ankush VermaPosted Jan 12, 2023, 4:56 AM
Please let me any one which pattern using this . for e,g MD5 or etc
Pasang TamangPosted Jan 11, 2023, 12:49 PM
Hi,
Looking into the error message, it says key ring is missing in server. So, you have to make sure key is available in server also.
Regards,
Pasang
Sachin SinghPosted Jan 11, 2023, 12:26 PM
make sure the key was present while publishing the code
Ankush VermaPosted Jan 11, 2023, 12:01 PM
Yes I have protect a key on localhost but this key unprotect on server .
Pasang TamangPosted Jan 11, 2023, 11:47 AM
Hi,
When you deploy your code to server, you included encryption key also? May be your encryption key is present in your local machine but not in server.
Regards,
Pasang