Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BackgroundService Failure Due to DataAccessException Cannot open database "JJMasterData" #265

Open
souvikk27 opened this issue Sep 16, 2024 · 0 comments

Comments

@souvikk27
Copy link

Whenever I'm trying to run the project I'm getting this exception. I'm using sql server authentication with valid credentials.

Microsoft.Extensions.Hosting.Internal.Host[9]
BackgroundService failed
JJMasterData.Commons.Exceptions.DataAccessException: Cannot open database "JJMasterData" requested by the login. The login failed.
Login failed for user 'DESKTOP-TNVIPG5\SOUVIK'.
at JJMasterData.Commons.Data.DataAccess.GetResultAsync(DataAccessCommand cmd, CancellationToken cancellationToken) in D:\Code\NET\master-data\JJMasterData\src\Commons\Data\DataAccessAsync.cs:line 146
at JJMasterData.Commons.Data.DataAccess.TableExistsAsync(String tableName, CancellationToken cancellationToken) in D:\Code\NET\master-data\JJMasterData\src\Commons\Data\DataAccessAsync.cs:line 328
at JJMasterData.Commons.Logging.Db.DbLoggerBackgroundService.LogAsync(LogMessage entry, CancellationToken cancellationToken) in D:\Code\NET\master-data\JJMasterData\src\Commons\Logging\Db\DbLoggerBackgroundService.cs:line 29
at JJMasterData.Commons.Logging.LoggerBackgroundService`1.ExecuteAsync(CancellationToken cancellationToken) in D:\Code\NET\master-data\JJMasterData\src\Commons\Logging\LoggerBackgroundService.cs:line 16
at Microsoft.Extensions.Hosting.Internal.Host.TryExecuteBackgroundServiceAsync(BackgroundService backgroundService)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant