项目启动出错

从官网(https://abp.io/)下载项目后,运行;

错误如下:

 

SqlException: Cannot open database "BookStore" requested by the login. The login failed.
Login failed for user 'SJ-PC\Administrator'.

Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, uint waitForMultipleObjectsTimeout, bool allowCreate, bool onlyOneCheckConnection, DbConnectionOptions userOptions, out DbConnectionInternal connection)


InvalidOperationException: An exception has been raised that is likely due to a transient failure. Consider enabling transient error resiliency by adding 'EnableRetryOnFailure' to the 'UseSqlServer' call.

Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.ExecuteAsync<TState, TResult>(TState state, Func<DbContext, TState, CancellationToken, Task<TResult>> operation, Func<DbContext, TState, CancellationToken, Task<ExecutionResult<TResult>>> verifySucceeded, CancellationToken cancellationToken)

 

 

解决方案:  检查一下链接字符串;

posted @ 2021-12-17 11:34  艾特-天空之海  阅读(364)  评论(0编辑  收藏  举报