Ho ricevuto questa eccezione quando provo a ottenere la mia home page sull'applicazione ASP.NET MVC.Autenticazione federata e "Errore durante un'operazione di crittografia"
[CryptographicException:. Verificato un errore durante un operazione crittografica]
System.Web.Security.Cryptography.HomogenizingCryptoServiceWrapper.HomogenizeErrors (Func`2 FUNC, Byte [] ingresso) +246
System.IdentityModel .Services.MachineKeyTransform.Decode (Byte [] codificato) +191
System.IdentityModel.Tokens.SessionSecurityTokenHandler.ApplyTransforms (Byte [] biscotto, in uscita booleano) 173
System.IdentityModel.Tokens.SessionSecurityTokenHandler.ReadToken (XmlRe Ader lettore, SecurityTokenResolver tokenResolver) 756
System.IdentityModel.Tokens.SessionSecurityTokenHandler.ReadToken (Byte [] gettone, SecurityTokenResolver tokenResolver) +100
System.IdentityModel.Services.SessionAuthenticationModule.ReadSessionTokenFromCookie (Byte [] sessionCookie) 1164
System.IdentityModel.Services.SessionAuthenticationModule.TryReadSessionTokenFromCookie (SessionSecurityToken & sessionToken) 287
System.IdentityModel.Services.SessionAuthenticationModule.OnAuthenticateRequest (Object sender, EventArgs eventArgs) 231
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80 System.Web.HttpApplication.ExecuteStep (passo IExecutionStep, booleano & completedSynchronously) +165
Da quello che ho capito qualcosa sbagliare nel cookie per SessionAuthenticationModule. Se si cancellano i cookie (come già indicato qui Federated Authentication on Azure) funziona. Quello che vorrei è capire cosa sta succedendo, come aggirare le eccezioni e risolvere il problema.
Come si emettono i cookie? –
La tua app è su Azure? –
@WiktorZychla: provenivano da una build precedente e memorizzate nella cache nel mio browser – Dave