hi Repunjay
Steps to reproduce the issue
You can also create a new project that using latest version.then compare the code.
https://docs.abp.io/en/abp/latest/Migration-Guides/Index https://docs.abp.io/en/commercial/latest/migration-guides/v4_3#identity-pro-module
hi scott7106
I checked the upgrade changes and did not find any reason to cause your problem. Can you compare the code of your project and the new project? Including database migration and structure?
hi
The application service will try to get all permissions when you call the its method, even if the above error does not occur, it will be an infinite loop.
I guess the GetSomeData
method is async. The Define
method of PermissionDefinitionProvider
is sync. So there is async over sync
problem.
You can get dynamic permissions through other ways. Sync methods are preferred.
Or call async method by AsyncHelper
var resutl = AsyncHelper.RunSync(() => serviceProvider.GetRequiredService<ISchedulerFactory>().GetScheduler())
hi
Have you tried the steps on this document?
https://docs.microsoft.com/en-us/aspnet/core/signalr/redis-backplane?view=aspnetcore-5.0
Configure ISignalRServerBuilder
in module.
public override void PreConfigureServices(ServiceConfigurationContext context)
{
context.Services.PreConfigure<ISignalRServerBuilder>(builder =>
{
builder.AddStackExchangeRedis("connectionString", options =>
{
options.Configuration.ChannelPrefix = "MyApp";
});
});
}
hi @Denis
You can check the Dynamic-CSharp-API-Clients
, It has built-in authentication.
https://docs.abp.io/en/abp/latest/API/Dynamic-CSharp-API-Clients
https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.IdentityModel/Volo/Abp/IdentityModel/IdentityModelAuthenticationService.cs#L22 https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.Http.Client.IdentityModel/Volo/Abp/Http/Client/IdentityModel/IdentityModelRemoteServiceHttpClientAuthenticator.cs#L21 https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.Http.Client.IdentityModel.Web/Volo/Abp/Http/Client/IdentityModel/Web/HttpContextIdentityModelRemoteServiceHttpClientAuthenticator.cs#L45
https://github.com/abpframework/abp/blob/dev/templates/app/aspnet-core/test/MyCompanyName.MyProjectName.HttpApi.Client.ConsoleTestApp/appsettings.json#L7 https://github.com/abpframework/abp/blob/dev/templates/app/aspnet-core/test/MyCompanyName.MyProjectName.HttpApi.Client.ConsoleTestApp/ClientDemoService.cs#L19
hi
I agree with you. I will give feedback to the team.
requiresNew (bool): Set true to ignore the surrounding unit of work and start a new UOW with the provided options. Default value is false. If it is false and there is a surrounding UOW, Begin method doesn't actually begin a new UOW, but silently participates to the existing UOW.
https://docs.abp.io/en/abp/4.3/Unit-Of-Work#begin-a-new-unit-of-work
hi
ABP SUITE version: vX.X.X
Steps to reproduce the issue:
Can you share some code of your event handler?
hi
Don't call application service in event handler. You can call the domain service that without the Authorization
.