Authentication Issues in Blazor Application After IIS Restart

Hamza SOUIHEL 0 Reputation points
2024-07-03T18:34:32.94+00:00

Hello everyone,

I'm encountering a significant issue with authentication in my Blazor application hosted on a Windows Server within a LAN environment.

Problem Description:

Whenever I turn off the IIS server to install updates for the application and then turn it back on, users find themselves logged into incorrect accounts. For example, I might be logged in as Admin, but after the restart, I find myself connected as a different user. This issue affects all users on the LAN, causing them to be logged in as different accounts, not their own. Additionally, the logout function ceases to work properly when this happens.

Here are additional details about my setup:

IIS Server Version: 10.0.17763.1

Authentication Method: ASP.NET Core Identity

Server Environment: The application is hosted on a server that is part of an Active Directory (AD) domain.

Has anyone experienced a similar issue or have any insights on what might be causing this problem? Any advice or suggestions would be greatly appreciated.

Thank you!

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,345 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,477 questions
{count} votes