Skip to content

Offline laptop / Failed to open the explicitly specified database 'Resgrid' #228

@fgadot

Description

@fgadot

ResGrid installed as a offline laptop on macOS Sequoia 10.5
Docker installed on macOS

ResGrid installation successful.
Docker containers starting correctly.

I can go to all initial web page from the documentation (https://docs.resgrid.com/self-hosted/laptop)
After the application is up and running, and I go to https://rg.mylocal web page, I get an error in the console when I enter the default credentials.



2025-07-11 12:01:45.47 Logon       Error: 18456, Severity: 14, State: 38.
2025-07-11 12:01:45.47 Logon       Login failed for user 'sa'. Reason: Failed to open the explicitly specified database 'Resgrid'. [CLIENT: 172.16.193.51]
web-1         | [12:01:45 FTL] 
web-1         | System.Data.SqlClient.SqlException (0x80131904): Cannot open database "Resgrid" requested by the login. The login failed.
web-1         | Login failed for user 'sa'.
web-1         |    at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken)
web-1         |    at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
web-1         |    at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
web-1         |    at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
web-1         |    at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
web-1         |    at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
web-1         |    at System.Data.ProviderBase.DbConnectionPool.WaitForPendingOpen()
web-1         | --- End of stack trace from previous location ---
web-1         |    at Resgrid.Repositories.DataRepository.IdentityUserRepository.GetByUserNameAsync(String userName) in /src/Repositories/Resgrid.Repositories.DataRepository/IdentityUserRepository.cs:line 180
web-1         | ClientConnectionId:8e735ac6-2ddf-429d-ba53-7f0547947d8b
web-1         | Error Number:4060,State:1,Class:11
web-1         | 
web-1         | AssemblyName:Resgrid.Framework, Version=0.7.18.0, Culture=neutral, PublicKeyToken=null
web-1         | CallerFilePath:/src/Repositories/Resgrid.Repositories.DataRepository/IdentityUserRepository.cs
web-1         | CallerMemberName:GetByUserNameAsync
web-1         | CallerLineNumber:193r
web-1         | CorrelationId:
web-1         | System.Data.SqlClient.SqlException (0x80131904): Cannot open database "Resgrid" requested by the login. The login failed.
web-1         | Login failed for user 'sa'.
web-1         |    at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken)
web-1         |    at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
web-1         |    at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
web-1         |    at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
web-1         |    at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
web-1         |    at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
web-1         |    at System.Data.ProviderBase.DbConnectionPool.WaitForPendingOpen()
web-1         | --- End of stack trace from previous location ---
web-1         |    at Resgrid.Repositories.DataRepository.IdentityUserRepository.GetByUserNameAsync(String userName) in /src/Repositories/Resgrid.Repositories.DataRepository/IdentityUserRepository.cs:line 180
web-1         | ClientConnectionId:8e735ac6-2ddf-429d-ba53-7f0547947d8b
web-1         | Error Number:4060,State:1,Class:11
web-1         | System.Data.SqlClient.SqlException (0x80131904): Cannot open database "Resgrid" requested by the login. The login failed.
web-1         | Login failed for user 'sa'.
web-1         |    at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken)
web-1         |    at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
web-1         |    at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
web-1         |    at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
web-1         |    at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
web-1         |    at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
web-1         |    at System.Data.ProviderBase.DbConnectionPool.WaitForPendingOpen()
web-1         | --- End of stack trace from previous location ---
web-1         |    at Resgrid.Repositories.DataRepository.IdentityUserRepository.GetByUserNameAsync(String userName) in /src/Repositories/Resgrid.Repositories.DataRepository/IdentityUserRepository.cs:line 180
web-1         | ClientConnectionId:8e735ac6-2ddf-429d-ba53-7f0547947d8b
web-1         | Error Number:4060,State:1,Class:11 
web-1         | [12:01:45 FTL] 
web-1         | System.Data.SqlClient.SqlException (0x80131904): Cannot open database "Resgrid" requested by the login. The login failed.
web-1         | Login failed for user 'sa'.
web-1         |    at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
web-1         |    at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
web-1         |    at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
web-1         |    at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
web-1         |    at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
web-1         |    at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
web-1         |    at System.Data.SqlClient.SqlConnection.OpenAsync(CancellationToken cancellationToken)
web-1         | --- End of stack trace from previous location ---
web-1         |    at Resgrid.Repositories.DataRepository.RepositoryBase`1.InsertAsync(T entity, CancellationToken cancellationToken, Boolean firstLevelOnly) in /src/Repositories/Resgrid.Repositories.DataRepository/RepositoryBase.cs:line 194
web-1         | ClientConnectionId:8e735ac6-2ddf-429d-ba53-7f0547947d8b
web-1         | Error Number:4060,State:1,Class:11
web-1         | 
web-1         | AssemblyName:Resgrid.Framework, Version=0.7.18.0, Culture=neutral, PublicKeyToken=null
web-1         | CallerFilePath:/src/Repositories/Resgrid.Repositories.DataRepository/RepositoryBase.cs
web-1         | CallerMemberName:InsertAsync
web-1         | CallerLineNumber:207r
web-1         | CorrelationId:
web-1         | System.Data.SqlClient.SqlException (0x80131904): Cannot open database "Resgrid" requested by the login. The login failed.
web-1         | Login failed for user 'sa'.
web-1         |    at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
web-1         |    at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
web-1         |    at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
web-1         |    at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
web-1         |    at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
web-1         |    at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
web-1         |    at System.Data.SqlClient.SqlConnection.OpenAsync(CancellationToken cancellationToken)
web-1         | --- End of stack trace from previous location ---
web-1         |    at Resgrid.Repositories.DataRepository.RepositoryBase`1.InsertAsync(T entity, CancellationToken cancellationToken, Boolean firstLevelOnly) in /src/Repositories/Resgrid.Repositories.DataRepository/RepositoryBase.cs:line 194
web-1         | ClientConnectionId:8e735ac6-2ddf-429d-ba53-7f0547947d8b
web-1         | Error Number:4060,State:1,Class:11
web-1         | System.Data.SqlClient.SqlException (0x80131904): Cannot open database "Resgrid" requested by the login. The login failed.
web-1         | Login failed for user 'sa'.
web-1         |    at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
web-1         |    at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
web-1         |    at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
web-1         |    at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
web-1         |    at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
web-1         |    at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
web-1         |    at System.Data.SqlClient.SqlConnection.OpenAsync(CancellationToken cancellationToken)
web-1         | --- End of stack trace from previous location ---
web-1         |    at Resgrid.Repositories.DataRepository.RepositoryBase`1.InsertAsync(T entity, CancellationToken cancellationToken, Boolean firstLevelOnly) in /src/Repositories/Resgrid.Repositories.DataRepository/RepositoryBase.cs:line 194
web-1         | ClientConnectionId:8e735ac6-2ddf-429d-ba53-7f0547947d8b
web-1         | Error Number:4060,State:1,Class:11 
web-1         | [12:01:45 FTL] 
web-1         | System.Data.SqlClient.SqlException (0x80131904): Cannot open database "Resgrid" requested by the login. The login failed.
web-1         | Login failed for user 'sa'.
web-1         |    at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
web-1         |    at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
web-1         |    at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
web-1         |    at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
web-1         |    at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
web-1         |    at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
web-1         |    at System.Data.SqlClient.SqlConnection.OpenAsync(CancellationToken cancellationToken)
web-1         | --- End of stack trace from previous location ---
web-1         |    at Resgrid.Repositories.DataRepository.RepositoryBase`1.InsertAsync(T entity, CancellationToken cancellationToken, Boolean firstLevelOnly) in /src/Repositories/Resgrid.Repositories.DataRepository/RepositoryBase.cs:line 194
web-1         |    at Resgrid.Repositories.DataRepository.RepositoryBase`1.SaveOrUpdateAsync(T entity, CancellationToken cancellationToken, Boolean firstLevelOnly) in /src/Repositories/Resgrid.Repositories.DataRepository/RepositoryBase.cs:line 316
web-1         |    at Resgrid.Services.SystemAuditsService.SaveSystemAuditAsync(SystemAudit auditLog, CancellationToken cancellationToken) in /src/Core/Resgrid.Services/SystemAuditsService.cs:line 26
web-1         |    at Resgrid.Web.Controllers.AccountController.LogOn(LoginViewModel model, CancellationToken cancellationToken, String returnUrl) in /src/Web/Resgrid.Web/Controllers/AccountController.cs:line 115
web-1         | ClientConnectionId:8e735ac6-2ddf-429d-ba53-7f0547947d8b
web-1         | Error Number:4060,State:1,Class:11
web-1         | 
web-1         | AssemblyName:Resgrid.Framework, Version=0.7.18.0, Culture=neutral, PublicKeyToken=null
web-1         | CallerFilePath:/src/Web/Resgrid.Web/Controllers/AccountController.cs
web-1         | CallerMemberName:LogOn
web-1         | CallerLineNumber:205r
web-1         | CorrelationId:
web-1         | System.Data.SqlClient.SqlException (0x80131904): Cannot open database "Resgrid" requested by the login. The login failed.
web-1         | Login failed for user 'sa'.
web-1         |    at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
web-1         |    at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
web-1         |    at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
web-1         |    at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
web-1         |    at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
web-1         |    at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
web-1         |    at System.Data.SqlClient.SqlConnection.OpenAsync(CancellationToken cancellationToken)
web-1         | --- End of stack trace from previous location ---
web-1         |    at Resgrid.Repositories.DataRepository.RepositoryBase`1.InsertAsync(T entity, CancellationToken cancellationToken, Boolean firstLevelOnly) in /src/Repositories/Resgrid.Repositories.DataRepository/RepositoryBase.cs:line 194
web-1         |    at Resgrid.Repositories.DataRepository.RepositoryBase`1.SaveOrUpdateAsync(T entity, CancellationToken cancellationToken, Boolean firstLevelOnly) in /src/Repositories/Resgrid.Repositories.DataRepository/RepositoryBase.cs:line 316
web-1         |    at Resgrid.Services.SystemAuditsService.SaveSystemAuditAsync(SystemAudit auditLog, CancellationToken cancellationToken) in /src/Core/Resgrid.Services/SystemAuditsService.cs:line 26
web-1         |    at Resgrid.Web.Controllers.AccountController.LogOn(LoginViewModel model, CancellationToken cancellationToken, String returnUrl) in /src/Web/Resgrid.Web/Controllers/AccountController.cs:line 115
web-1         | ClientConnectionId:8e735ac6-2ddf-429d-ba53-7f0547947d8b
web-1         | Error Number:4060,State:1,Class:11
web-1         | System.Data.SqlClient.SqlException (0x80131904): Cannot open database "Resgrid" requested by the login. The login failed.
web-1         | Login failed for user 'sa'.
web-1         |    at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
web-1         |    at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
web-1         |    at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
web-1         |    at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
web-1         |    at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
web-1         |    at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
web-1         |    at System.Data.SqlClient.SqlConnection.OpenAsync(CancellationToken cancellationToken)
web-1         | --- End of stack trace from previous location ---
web-1         |    at Resgrid.Repositories.DataRepository.RepositoryBase`1.InsertAsync(T entity, CancellationToken cancellationToken, Boolean firstLevelOnly) in /src/Repositories/Resgrid.Repositories.DataRepository/RepositoryBase.cs:line 194
web-1         |    at Resgrid.Repositories.DataRepository.RepositoryBase`1.SaveOrUpdateAsync(T entity, CancellationToken cancellationToken, Boolean firstLevelOnly) in /src/Repositories/Resgrid.Repositories.DataRepository/RepositoryBase.cs:line 316
web-1         |    at Resgrid.Services.SystemAuditsService.SaveSystemAuditAsync(SystemAudit auditLog, CancellationToken cancellationToken) in /src/Core/Resgrid.Services/SystemAuditsService.cs:line 26
web-1         |    at Resgrid.Web.Controllers.AccountController.LogOn(LoginViewModel model, CancellationToken cancellationToken, String returnUrl) in /src/Web/Resgrid.Web/Controllers/AccountController.cs:line 115
web-1         | ClientConnectionId:8e735ac6-2ddf-429d-ba53-7f0547947d8b
web-1         | Error Number:4060,State:1,Class:11 
web-1         | fail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[1]
web-1         |       An unhandled exception has occurred while executing the request.
web-1         |       System.InvalidOperationException: The ConnectionString property has not been initialized.
web-1         |          at System.Data.SqlClient.SqlConnection.PermissionDemand()
web-1         |          at System.Data.SqlClient.SqlConnectionFactory.PermissionDemand(DbConnection outerConnection)
web-1         |          at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
web-1         |          at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
web-1         |          at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
web-1         |          at System.Data.SqlClient.SqlConnection.OpenAsync(CancellationToken cancellationToken)
web-1         |       --- End of stack trace from previous location ---
web-1         |          at Dapper.SqlMapper.QueryAsync[T](IDbConnection cnn, Type effectiveType, CommandDefinition command) in /_/Dapper/SqlMapper.Async.cs:line 433
web-1         |          at Resgrid.Repositories.DataRepository.IdentityRepository.GetUserByUserNameAsync(String userName) in /src/Repositories/Resgrid.Repositories.DataRepository/IdentityRepository.cs:line 75
web-1         |          at Resgrid.Services.UsersService.GetUserByNameAsync(String userName) in /src/Core/Resgrid.Services/UsersService.cs:line 193
web-1         |          at Resgrid.Services.UsersService.DoesUserHaveAnyActiveDepartments(String userName) in /src/Core/Resgrid.Services/UsersService.cs:line 97
web-1         |          at Resgrid.Web.Controllers.AccountController.LogOn(LoginViewModel model, CancellationToken cancellationToken, String returnUrl) in /src/Web/Resgrid.Web/Controllers/AccountController.cs:line 207
web-1         |          at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
web-1         |          at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
web-1         |          at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
web-1         |          at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
web-1         |          at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
web-1         |          at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
web-1         |          at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
web-1         |          at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
web-1         |          at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
web-1         |          at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
web-1         |          at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
web-1         |          at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
web-1         |          at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)
web-1         |          at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
web-1         |          at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
web-1         |          at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
web-1         |          at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
web-1         |          at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
web-1         |          at Resgrid.Web.Startup.<>c.<<Configure>b__19_0>d.MoveNext() in /src/Web/Resgrid.Web/Startup.cs:line 537
web-1         |       --- End of stack trace from previous location ---
web-1         |          at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions