我有一个使用Windows Identity Foundation的声明感知Web应用程序,除了在一台服务器上运行良好.我在事件日志中看到如下所示的错误消息.
Exception information:
Exception type: CryptographicException
Exception message: Key not valid for use in specified state.
at System.Security.Cryptography.ProtectedData.Unprotect(Byte[] encryptedData, Byte[] optionalEntropy, DataProtectionScope scope)
at Microsoft.IdentityModel.Web.ProtectedDataCookieTransform.Decode(Byte[] encoded)
Run Code Online (Sandbox Code Playgroud)
此应用程序使用非常标准的WIF实现与ADFS v2.它没有使用RsaEncryptionCookieTransform.我正在寻找有关如何诊断这一点的任何建议.到目前为止我尝试过的事情:
任何意见,将不胜感激.