asp.net mvc 2 - Problem using WIF with IIS6 -


If there is a problem using sessionAuthenticationModule on IIS 6, the following exception occurs when you try to use the application Is:

The data protection operation was unsuccessful. This may be due to the lack of user profile for the user thread of the current thread, which may occur when the thread is impersonated.

It is possible to enable the profiles in IIS 7 which I am capable of doing but our hosting company uses IIS 6. Any thoughts to do? To make some effort, or just general thoughts?

Stacktrace:

  [Cryptographic Expression: The data protection operation was unsuccessful. This may be due to the user profile not loading for the user reference of the current thread, which may occur when the thread is impersonated.] System. Security. Cryptography Protected data Protected (Byte [] userData, Byte [] Optional Encryption, Data Protection Scope Scope) +456 Microsoft. Identity MODEL. Web. Protected DataCookie Transform Encoding (byte [value]) +54 [Invalid Operation Expansion: ID 1074: Cryptographic Exposure occurred while trying to encrypt cookies using the Protected Data API (see Internal exceptions for details). If you are using IIS 7.5, it may be that the application pool is being set to false due to the load hooser profile setting. ] Microsoft.IdentityModel.Web. ProtectedDataCookieTransform.Encode (Byte [Value]) +146 Microsoft.IdentityModel.Tokens.SessionSecurityTokenHandler.ApplyTransforms (Byte [Cookie, Boolean Outbound] +47 Microsoft.IdentityModel.Tokens.SessionSecurityTokenHandler.WriteToken (XmlWriter Writer, SecurityToken Token) +470 Microsoft .IDentityModel.Tocens.SessionSecurityTokenHandler.WriteToken (Sessionality Token sessionTyacon) +89 Microsoft.IndentityModel.web session. Authentication Model.ItestationToku Cookie (Session session security token session) +123  

create dummy window service And install the window service on your web service and change its logon account to be similar to your web app app pool account. It should work


Comments