Activities of "liangshiwei"

What's your project's github root URL?

Hi,

It is just an extracted js method for creating cookies.

The purpose of using these cookies and do they contain any sensitive info?

We haven't used this method in framework or modules, so there is no any sensitive info

Hi,

This sounds like another version of the user-role: customRole-role.

You can check the implementation code of module Identity: https://github.com/abpframework/abp/tree/dev/modules/identity

Some point:

  • Feature management Ui is reusable, and you can use it directly: https://github.com/abpframework/abp/blob/dev/npm/ng-packs/packages/identity/src/lib/components/roles/roles.component.html#L33
  • You need to cover the role permission provider to load the permissions of the custom role under the role: https://github.com/abpframework/abp/blob/dev/modules/identity/src/Volo.Abp.PermissionManagement.Domain.Identity/Volo/Abp/PermissionManagement/Identity/RolePermissionManagementProvider.cs#L40
  • You need to delete the permission cache when updating and deleting custom roles. for example: https://github.com/abpframework/abp/blob/dev/modules/identity/src/Volo.Abp.PermissionManagement.Domain.Identity/Volo/Abp/PermissionManagement/Identity/RoleDeletedEventHandler.cs

Hi,

It works for me:

[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(FileDescriptorController), IncludeSelf = true)]
[AllowAnonymous]
public class MyFileDescriptorController : FileDescriptorController
{
    public MyFileDescriptorController(IFileDescriptorAppService fileDescriptorAppService) : base(fileDescriptorAppService)
    {
    }


    [AllowAnonymous]
    [HttpPost]
    [Route("upload")]
    public override Task<FileDescriptorDto> CreateAsync(Guid? directoryId, CreateFileInputWithStream inputWithStream)
    {
        return FileDescriptorAppService.CreateAsync(directoryId, inputWithStream);
    }
}

[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IFileDescriptorAppService), typeof(FileDescriptorAppService), typeof(MyFileDescriptorAppService))]
[AllowAnonymous]
public class MyFileDescriptorAppService : FileDescriptorAppService
{
    public MyFileDescriptorAppService(IFileManager fileManager,
        IFileDescriptorRepository fileDescriptorRepository,
        IBlobContainer<FileManagementContainer> blobContainer,
        IDistributedCache<FileDownloadTokenCacheItem, string> downloadTokenCache)
        : base(fileManager, fileDescriptorRepository, blobContainer, downloadTokenCache)
    {
    }


    [AllowAnonymous]
    public override async Task<FileDescriptorDto> CreateAsync(Guid? directoryId, CreateFileInputWithStream inputWithStream)
    {
        return new FileDescriptorDto()
        {
            Name = "OK"
        };
    }
}

The system cannot find the file specified.

See: https://stackoverflow.com/questions/17840825/cryptographicexception-was-unhandled-system-cannot-find-the-specified-file

Hi,

The problem was fixed: https://github.com/abpframework/abp/pull/15927

You can put the file index.js in the Pages/Docs/Admin/Documents folder.

And it will get work, this is my project details:

BTW, You probably will see a style problem:

You can put the index.css file in the Pages/Documents/Project folder.

.code-toolbar .line-highlight {
    margin-top: 1.5em !important;
    background: rgba(233, 237, 241, 0.34) !important;
    padding: 1px !important; }

.input-group .input-group-text{
    background-color: transparent!important;
}

Hi,

Sorry again,

The rich text editor convert my reply and make it wrong.

Please try this: https://gist.github.com/realLiangshiwei/7ffd48434a102097ca9168016a8a5359

Hi,

If you want to keep the sub-module independent, you should use it as a separate application deployment.

But it will make your project more complex, it used to be a single application, but now it has become a distributed application

I can show you how to do it if this is what you want.

Anyway as a workaround I just added the migration files to the main ef project manually.

Yes, you need to add the migration file manually

Answer

Hi,

The CSS Isolation can't work with RazorRuntimeCompilation: https://github.com/dotnet/aspnetcore/issues/42411

ABP enable the RazorRuntimeCompilation by default, you can disable it:

public override void PreConfigureServices(ServiceConfigurationContext context)
{
    PreConfigure<AbpAspNetCoreMvcOptions>(options =>
    {
        options.EnableRazorRuntimeCompilationOnDevelopment = false;
    });
}

Showing 4181 to 4190 of 6693 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on November 04, 2025, 06:41