The user is encountering a problem with their .NET 10 ASP.NET Core application using Entity Framework. The issue is a misconfiguration of the connection string. Initially, the connection string is correctly retrieved from `appsettings.json` within the `Program.cs` file. The IConfiguration object in the LoginController also reveals the expected settings. However, the connection string is incorrect within the `FSMUserStore` constructor when dependency injection is used. The user suspects the error lies in the dependency injection setup within `Program.cs`, despite numerous troubleshooting attempts. The provided code shows the necessary configuration for setting up the database context. Authentication and authorization with JWT Bearer are included in the configuration. ElmahCore is also configured for error logging, using the initial connection string. The code sets up services for identity, including user store, manager, and sign-in manager. Finally, the application builds and sets up the HTTP request pipeline, including middleware for HTTPS redirection, authentication, authorization, and controller mapping. The core problem is that the connection string is not correctly passed.
techcommunity.microsoft.com
techcommunity.microsoft.com
Create attached notes ...
