ASP.NET Identity: use GeneratePasswordResetToken on Azure website
问题 I have my web application deployed on Microsoft Azure. However when I want to generate a PasswordResetToken with: var token = await _userManager.GeneratePasswordResetTokenAsync(user.Id); I get the following error: System.Security.Cryptography.CryptographicException: The data protection operation was unsuccessful. This may have been caused by not having the user profile loaded for the current thread's user context, which may be the case when the thread is impersonating. How do I get this to