Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "bobiasg"

I use module zero template, version 1.2. In create tenant from TenantAppService, with admin username different than "admin", it throw error: "There is no entity User with id = xx".

View in source code, I found error cause by: CheckErrors(await UserManager.AddToRoleAsync(adminUser.Id, adminRole.Name)); (TenantAppService)

In UserManager.AddToRoleAsync, it call UpdateAsync --> GetOldUserNameAsync because username is not equal "admin" --> AbpStore.GetUserNameFromDatabaseAsync.

In AbpStore.GetUserNameFromDatabaseAsync, it begin new UnitOfWork with tenantId from AbpSession. And _userRepository.GetAsync(userId) throw error.

It is new code is updated in v 1.2.

Showing 1 to 1 of 1 entries