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


Pasang TamangRank #449 · 5.6K reputationPosted Jan 11, 2023, 6:47 AM EST
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
Sachin SinghRank #66 · 26.2K reputationPosted Jan 11, 2023, 7:26 AM EST
make sure the key was present while publishing the code
Pasang TamangRank #449 · 5.6K reputationPosted Jan 11, 2023, 7:49 AM EST
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
Ankush Verma129 reputationPosted Jan 11, 2023, 7:01 AM EST
Yes I have protect a key on localhost but this key unprotect on server .
Ankush Verma129 reputationPosted Jan 11, 2023, 11:56 PM EST
Please let me any one which pattern using this . for e,g MD5 or etc