An error occurred while accessing the Microsoft.Extensions.Hosting services. Continuing without the application service provider. Error: Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: DuoeCore.ServiceSqlite.Interface.ImAdminUserService Lifetime: Transient ImplementationType: DuoeCore.ServiceSqlite.Implement.mAdminUserService': Unable to resolve service for type 'DuoeCore.DataSqlite.DbContextSqlLite' while attempting to activate 'DuoeCore.ServiceSqlite.Implement.mAdminUserService'.)
出現以上錯誤問題,發現是我注入的DBContext上下文錯誤,兩個重名的類,不在同一個類庫里,本來調用B,結果自動調用了A造成如上錯誤。