Your project is very complex, can you reproduce the problem in a new template project? Thanks
Yes, please, liming.ma@volosoft.com
hi
Can you try the template project?
What are the steps?
hi
You can try using the latest LeptonX packages.
2.0.2
hi
What theme is your application using?
Lepton x or Lpeton?
hi
You can try that.
public override void ConfigureServices(ServiceConfigurationContext context)
{
ConfigureInMemorySqlite(context.Services);
Configure<FeatureManagementOptions>(options =>
{
options.SaveStaticFeaturesToDatabase = false;
options.IsDynamicFeatureStoreEnabled = false;
});
Configure<PermissionManagementOptions>(options =>
{
options.SaveStaticPermissionsToDatabase = false;
options.IsDynamicPermissionStoreEnabled = false;
});
context.Services.AddAbpDynamicOptions<IdentityOptions, MyAbpIdentityOptionsManager>();
}
public class MyAbpIdentityOptionsManager : AbpIdentityOptionsManager
{
public MyAbpIdentityOptionsManager(
IOptionsFactory<IdentityOptions> factory,
ISettingProvider settingProvider)
: base(factory, settingProvider)
{
}
protected override Task OverrideOptionsAsync(string name, IdentityOptions options)
{
return Task.CompletedTask;
}
}
. I am still getting random failures.
What's the exception details?
We disable transactions because of SQLite limitations.
hi
move your GetByIdAsync
code into the new uow
scope.
public async Task UpdateAsync(Guid id, IdentityUserUpdateDto input)
{
using (var uow = _unitOfWorkManager.Begin(
requiresNew: true, isTransactional: false
))
{
await _identityOptions.SetAsync();
var user = await _identityUserManager.GetByIdAsync(id);
user.SetConcurrencyStampIfNotNull(input.ConcurrencyStamp);
(await _identityUserManager.SetUserNameAsync(user, input.UserName)).CheckErrors();
await UpdateUserByInput(user, input);
input.MapExtraPropertiesTo(user);
(await _identityUserManager.UpdateAsync(user)).CheckErrors();
await uow.CompleteAsync();
var userDto = _objectMapper.Map(user);
return userDto;
}
}
System.ArgumentNullException Value cannot be null. (Parameter 'roleNames')
Please check this line: (await _identityUserManager.SetRolesAsync(user, input.RoleNames)).CheckErrors();
The input.RoleNames
is null.
can I share the project with you?
Sure. liming.ma@volosoft.com