Changing IIS application pool identity causes issues

randylaheydev 0 Reputation points
2023-01-26T12:15:24.2466667+00:00

Hello,

I am currently in the process of changing the user running the application pool for my IIS .NET 6 website. I am switching it from a domain user to another domain user with identical rights and group memberships.

Although my website appears to be functioning correctly, I have noticed that it occasionally throws errors such as: "An exception occurred while processing the key element" and "Error unprotecting the session cookie." These errors specifically seem to occur when returning visitors access the website, but not when new visitors access it. Additionally, the user does not seem to experience any issues even though the errors are being thrown.

I suspect that this issue may be related to changing the identity of the application pool, but I am unsure of the specific cause. Does anyone have any ideas or suggestions as to what might be causing these errors?

Internet Information Services
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,166 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 56,026 Reputation points
    2023-01-26T21:47:00.02+00:00

    the data protection folder used to store keys probably does not allow access to the new account:

    [https://learn.microsoft.com/en-us/aspnet/core/security/data-protection/configuration/overview?view=aspnetcore-7.0

    0 comments No comments