Activities of "liangshiwei"

ok

Hi,

I have checked the log file.

But it's hard to find something, you seem to have customized a lot of services.

I can only give some suggestions.

Try comment some code to narrow down the problem, for example:

 private async Task OnSessionEndRequestAsync(HttpContext httpContext, IdentityUserManager userManager)
{
    try
    {
        // comment
        //var user = await userManager.GetUserAsync(httpContext.User); // Cancellation exception!
        ...
    }
    catch(Exception ex)
    {
        _logger.LogError(ex, "Session End handling error");
    }
}

Hi,

Could you also share the cshtml code?

Hi,

1 You can try to remove the dotnet dev-certs step

~~FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build~~ ~~WORKDIR /src~~ ~~RUN dotnet dev-certs https -v -ep authserver.pfx -p 2D7AA457-5D33-48D6-936F-C48E5EF468ED~~

2 Update GetSigningCertificate method:

private X509Certificate2 GetSigningCertificate()
{
    var fileName = "authserver.pfx";
    var passPhrase "2D7AA457-5D33-48D6-936F-C48E5EF468ED";
    
    if (!File.Exists(fileName))
    {
        throw new FileNotFoundException($"Signing Certificate couldn't found: {fileName}");
    }

    return new X509Certificate2(fileName, passPhrase);
}

3 Update .Web.csprojfile

<ItemGroup Condition="Exists('./authserver.pfx')">
<None Remove="authserver.pfx" />
<EmbeddedResource Include="authserver.pfx">
  <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</EmbeddedResource>
</ItemGroup>

4 Open the Web project root folder to run the command: dotnet dev-certs https -ep authserver.pfx -p 2D7AA457-5D33-48D6-936F-C48E5EF468ED

Hi,

There is no such API, you need to extend PermissionManager.

Hi,

Is there a way to Customize the Organization unit, such as to change the coding Mechanism

You can replace the OrganizationUnitManager to override the GetNextChildCodeAsync method

Can we have several organization Units in the same application for example for Location and Category?

1 : You can use organization Units as Location and Category, you need to differentiate between them in business

Organization Units

Location A
    Location A-a
    Location A-b

Location B
    Location A-a
    Location A-b

Category A
    Category A-a

2: You can create new organization tree entities for Location and Category.

Here is a library that can help you simplify the development process: https://github.com/maliming/Owl.GeneralTree

My email is shiwei.liang@volosoft.com

Hi,

Could you share a simple test project? I will check it.

I could not reproduce the problem.

Can you share how you did it and some screenshots?

https://github.com/abpframework/abp/issues/18518

Showing 2731 to 2740 of 6692 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 12, 2025, 10:20