My technical architect asked me to work on windows Azure access control service and configure ACS for ADFS. After following all the steps on Azure management portal such as configuring identity provider, adding relying party; it was time for me to add STS reference in my azure web role. If you don’t know click - how to add STS reference.
I added the STS reference in my web role and pressed F5 to start debug. And I got difficult exception mentioned below –
CryptographicException: Key not valid for use in specified state.
InvalidOperationException: ID1073: A CryptographicException occurred when attempting to decrypt the cookie using the ProtectedData API (see inner exception for details). If you are using IIS 7.5, this could be due to the loadUserProfile setting on the Application Pool being set to false.
I don’t understand why I always face very odd issues. Anyways, following is the description about solution to the above mentioned error.