Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hi,
we are facing this issue for sometime now.We are using Azure active directory for authentication.Added organization authentication by using the create wizard while creating the application.everything works fine after few days of deployment to different instances.After few days of deployment when we run it from local we were getting "Error occurred during a cryptographic operation." on ADALTokenCache method and BeforeAccessNotification method(which will be generated while adding the authentication).

Code which is causing the error : this.Deserialize((Cache == null) ? null : MachineKey.Unprotect(Cache.cacheBits, "ADALCache"));

After research it seems like we need to add Machine key in our application I did it by following the https://support.microsoft.com/en-us/kb/312906 link.after putting that also I get the same error.

I need to know , how to tell the application that while unprotect/protect the data read it from web.config or is there anyother workaround for this issue.we are stuck here.Any help would be appreciated.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900